| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761 |
- // SPDX-License-Identifier: Apache-2.0 OR MIT
- // This file is @generated by syn-internal-codegen.
- // It is not intended for manual editing.
- #![allow(unused_variables)]
- #![allow(clippy::needless_pass_by_ref_mut)]
- #[cfg(any(feature = "full", feature = "derive"))]
- use crate::punctuated::Punctuated;
- #[cfg(feature = "full")]
- macro_rules! full {
- ($e:expr) => {
- $e
- };
- }
- #[cfg(all(feature = "derive", not(feature = "full")))]
- macro_rules! full {
- ($e:expr) => {
- unreachable!()
- };
- }
- macro_rules! skip {
- ($($tt:tt)*) => {};
- }
- /// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in
- /// place.
- ///
- /// See the [module documentation] for details.
- ///
- /// [module documentation]: self
- pub trait VisitMut {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_abi_mut(&mut self, i: &mut crate::Abi) {
- visit_abi_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_angle_bracketed_generic_arguments_mut(
- &mut self,
- i: &mut crate::AngleBracketedGenericArguments,
- ) {
- visit_angle_bracketed_generic_arguments_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_arm_mut(&mut self, i: &mut crate::Arm) {
- visit_arm_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_const_mut(&mut self, i: &mut crate::AssocConst) {
- visit_assoc_const_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_type_mut(&mut self, i: &mut crate::AssocType) {
- visit_assoc_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attr_style_mut(&mut self, i: &mut crate::AttrStyle) {
- visit_attr_style_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attribute_mut(&mut self, i: &mut crate::Attribute) {
- visit_attribute_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attributes_mut(&mut self, i: &mut Vec<crate::Attribute>) {
- for attr in i {
- self.visit_attribute_mut(attr);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_fn_arg_mut(&mut self, i: &mut crate::BareFnArg) {
- visit_bare_fn_arg_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_variadic_mut(&mut self, i: &mut crate::BareVariadic) {
- visit_bare_variadic_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bin_op_mut(&mut self, i: &mut crate::BinOp) {
- visit_bin_op_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_block_mut(&mut self, i: &mut crate::Block) {
- visit_block_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bound_lifetimes_mut(&mut self, i: &mut crate::BoundLifetimes) {
- visit_bound_lifetimes_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_captured_param_mut(&mut self, i: &mut crate::CapturedParam) {
- visit_captured_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_const_param_mut(&mut self, i: &mut crate::ConstParam) {
- visit_const_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_constraint_mut(&mut self, i: &mut crate::Constraint) {
- visit_constraint_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_mut(&mut self, i: &mut crate::Data) {
- visit_data_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_enum_mut(&mut self, i: &mut crate::DataEnum) {
- visit_data_enum_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_struct_mut(&mut self, i: &mut crate::DataStruct) {
- visit_data_struct_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_union_mut(&mut self, i: &mut crate::DataUnion) {
- visit_data_union_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_derive_input_mut(&mut self, i: &mut crate::DeriveInput) {
- visit_derive_input_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_mut(&mut self, i: &mut crate::Expr) {
- visit_expr_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_array_mut(&mut self, i: &mut crate::ExprArray) {
- visit_expr_array_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_assign_mut(&mut self, i: &mut crate::ExprAssign) {
- visit_expr_assign_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_async_mut(&mut self, i: &mut crate::ExprAsync) {
- visit_expr_async_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_await_mut(&mut self, i: &mut crate::ExprAwait) {
- visit_expr_await_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_binary_mut(&mut self, i: &mut crate::ExprBinary) {
- visit_expr_binary_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_block_mut(&mut self, i: &mut crate::ExprBlock) {
- visit_expr_block_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_break_mut(&mut self, i: &mut crate::ExprBreak) {
- visit_expr_break_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_call_mut(&mut self, i: &mut crate::ExprCall) {
- visit_expr_call_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_cast_mut(&mut self, i: &mut crate::ExprCast) {
- visit_expr_cast_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_closure_mut(&mut self, i: &mut crate::ExprClosure) {
- visit_expr_closure_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_const_mut(&mut self, i: &mut crate::ExprConst) {
- visit_expr_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_continue_mut(&mut self, i: &mut crate::ExprContinue) {
- visit_expr_continue_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_field_mut(&mut self, i: &mut crate::ExprField) {
- visit_expr_field_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_for_loop_mut(&mut self, i: &mut crate::ExprForLoop) {
- visit_expr_for_loop_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_group_mut(&mut self, i: &mut crate::ExprGroup) {
- visit_expr_group_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_if_mut(&mut self, i: &mut crate::ExprIf) {
- visit_expr_if_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_index_mut(&mut self, i: &mut crate::ExprIndex) {
- visit_expr_index_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_infer_mut(&mut self, i: &mut crate::ExprInfer) {
- visit_expr_infer_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_let_mut(&mut self, i: &mut crate::ExprLet) {
- visit_expr_let_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_lit_mut(&mut self, i: &mut crate::ExprLit) {
- visit_expr_lit_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_loop_mut(&mut self, i: &mut crate::ExprLoop) {
- visit_expr_loop_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_macro_mut(&mut self, i: &mut crate::ExprMacro) {
- visit_expr_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_match_mut(&mut self, i: &mut crate::ExprMatch) {
- visit_expr_match_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_method_call_mut(&mut self, i: &mut crate::ExprMethodCall) {
- visit_expr_method_call_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_paren_mut(&mut self, i: &mut crate::ExprParen) {
- visit_expr_paren_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_path_mut(&mut self, i: &mut crate::ExprPath) {
- visit_expr_path_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_range_mut(&mut self, i: &mut crate::ExprRange) {
- visit_expr_range_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_raw_addr_mut(&mut self, i: &mut crate::ExprRawAddr) {
- visit_expr_raw_addr_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_reference_mut(&mut self, i: &mut crate::ExprReference) {
- visit_expr_reference_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_repeat_mut(&mut self, i: &mut crate::ExprRepeat) {
- visit_expr_repeat_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_return_mut(&mut self, i: &mut crate::ExprReturn) {
- visit_expr_return_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_struct_mut(&mut self, i: &mut crate::ExprStruct) {
- visit_expr_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_mut(&mut self, i: &mut crate::ExprTry) {
- visit_expr_try_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_block_mut(&mut self, i: &mut crate::ExprTryBlock) {
- visit_expr_try_block_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_tuple_mut(&mut self, i: &mut crate::ExprTuple) {
- visit_expr_tuple_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_unary_mut(&mut self, i: &mut crate::ExprUnary) {
- visit_expr_unary_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_unsafe_mut(&mut self, i: &mut crate::ExprUnsafe) {
- visit_expr_unsafe_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_while_mut(&mut self, i: &mut crate::ExprWhile) {
- visit_expr_while_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_yield_mut(&mut self, i: &mut crate::ExprYield) {
- visit_expr_yield_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mut(&mut self, i: &mut crate::Field) {
- visit_field_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mutability_mut(&mut self, i: &mut crate::FieldMutability) {
- visit_field_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_field_pat_mut(&mut self, i: &mut crate::FieldPat) {
- visit_field_pat_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_value_mut(&mut self, i: &mut crate::FieldValue) {
- visit_field_value_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_mut(&mut self, i: &mut crate::Fields) {
- visit_fields_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_named_mut(&mut self, i: &mut crate::FieldsNamed) {
- visit_fields_named_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_unnamed_mut(&mut self, i: &mut crate::FieldsUnnamed) {
- visit_fields_unnamed_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_file_mut(&mut self, i: &mut crate::File) {
- visit_file_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_fn_arg_mut(&mut self, i: &mut crate::FnArg) {
- visit_fn_arg_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_mut(&mut self, i: &mut crate::ForeignItem) {
- visit_foreign_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_fn_mut(&mut self, i: &mut crate::ForeignItemFn) {
- visit_foreign_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_macro_mut(&mut self, i: &mut crate::ForeignItemMacro) {
- visit_foreign_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_static_mut(&mut self, i: &mut crate::ForeignItemStatic) {
- visit_foreign_item_static_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_type_mut(&mut self, i: &mut crate::ForeignItemType) {
- visit_foreign_item_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_argument_mut(&mut self, i: &mut crate::GenericArgument) {
- visit_generic_argument_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_param_mut(&mut self, i: &mut crate::GenericParam) {
- visit_generic_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generics_mut(&mut self, i: &mut crate::Generics) {
- visit_generics_mut(self, i);
- }
- fn visit_ident_mut(&mut self, i: &mut proc_macro2::Ident) {
- visit_ident_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_mut(&mut self, i: &mut crate::ImplItem) {
- visit_impl_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_const_mut(&mut self, i: &mut crate::ImplItemConst) {
- visit_impl_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_fn_mut(&mut self, i: &mut crate::ImplItemFn) {
- visit_impl_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_macro_mut(&mut self, i: &mut crate::ImplItemMacro) {
- visit_impl_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_type_mut(&mut self, i: &mut crate::ImplItemType) {
- visit_impl_item_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_restriction_mut(&mut self, i: &mut crate::ImplRestriction) {
- visit_impl_restriction_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_index_mut(&mut self, i: &mut crate::Index) {
- visit_index_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mut(&mut self, i: &mut crate::Item) {
- visit_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_const_mut(&mut self, i: &mut crate::ItemConst) {
- visit_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_enum_mut(&mut self, i: &mut crate::ItemEnum) {
- visit_item_enum_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_extern_crate_mut(&mut self, i: &mut crate::ItemExternCrate) {
- visit_item_extern_crate_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_fn_mut(&mut self, i: &mut crate::ItemFn) {
- visit_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_foreign_mod_mut(&mut self, i: &mut crate::ItemForeignMod) {
- visit_item_foreign_mod_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_impl_mut(&mut self, i: &mut crate::ItemImpl) {
- visit_item_impl_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_macro_mut(&mut self, i: &mut crate::ItemMacro) {
- visit_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mod_mut(&mut self, i: &mut crate::ItemMod) {
- visit_item_mod_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_static_mut(&mut self, i: &mut crate::ItemStatic) {
- visit_item_static_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_struct_mut(&mut self, i: &mut crate::ItemStruct) {
- visit_item_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_mut(&mut self, i: &mut crate::ItemTrait) {
- visit_item_trait_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_alias_mut(&mut self, i: &mut crate::ItemTraitAlias) {
- visit_item_trait_alias_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_type_mut(&mut self, i: &mut crate::ItemType) {
- visit_item_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_union_mut(&mut self, i: &mut crate::ItemUnion) {
- visit_item_union_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_use_mut(&mut self, i: &mut crate::ItemUse) {
- visit_item_use_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_label_mut(&mut self, i: &mut crate::Label) {
- visit_label_mut(self, i);
- }
- fn visit_lifetime_mut(&mut self, i: &mut crate::Lifetime) {
- visit_lifetime_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_lifetime_param_mut(&mut self, i: &mut crate::LifetimeParam) {
- visit_lifetime_param_mut(self, i);
- }
- fn visit_lit_mut(&mut self, i: &mut crate::Lit) {
- visit_lit_mut(self, i);
- }
- fn visit_lit_bool_mut(&mut self, i: &mut crate::LitBool) {
- visit_lit_bool_mut(self, i);
- }
- fn visit_lit_byte_mut(&mut self, i: &mut crate::LitByte) {
- visit_lit_byte_mut(self, i);
- }
- fn visit_lit_byte_str_mut(&mut self, i: &mut crate::LitByteStr) {
- visit_lit_byte_str_mut(self, i);
- }
- fn visit_lit_cstr_mut(&mut self, i: &mut crate::LitCStr) {
- visit_lit_cstr_mut(self, i);
- }
- fn visit_lit_char_mut(&mut self, i: &mut crate::LitChar) {
- visit_lit_char_mut(self, i);
- }
- fn visit_lit_float_mut(&mut self, i: &mut crate::LitFloat) {
- visit_lit_float_mut(self, i);
- }
- fn visit_lit_int_mut(&mut self, i: &mut crate::LitInt) {
- visit_lit_int_mut(self, i);
- }
- fn visit_lit_str_mut(&mut self, i: &mut crate::LitStr) {
- visit_lit_str_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_mut(&mut self, i: &mut crate::Local) {
- visit_local_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_init_mut(&mut self, i: &mut crate::LocalInit) {
- visit_local_init_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_mut(&mut self, i: &mut crate::Macro) {
- visit_macro_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_delimiter_mut(&mut self, i: &mut crate::MacroDelimiter) {
- visit_macro_delimiter_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_member_mut(&mut self, i: &mut crate::Member) {
- visit_member_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_mut(&mut self, i: &mut crate::Meta) {
- visit_meta_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_list_mut(&mut self, i: &mut crate::MetaList) {
- visit_meta_list_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_name_value_mut(&mut self, i: &mut crate::MetaNameValue) {
- visit_meta_name_value_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_parenthesized_generic_arguments_mut(
- &mut self,
- i: &mut crate::ParenthesizedGenericArguments,
- ) {
- visit_parenthesized_generic_arguments_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_mut(&mut self, i: &mut crate::Pat) {
- visit_pat_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_ident_mut(&mut self, i: &mut crate::PatIdent) {
- visit_pat_ident_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_or_mut(&mut self, i: &mut crate::PatOr) {
- visit_pat_or_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_paren_mut(&mut self, i: &mut crate::PatParen) {
- visit_pat_paren_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_reference_mut(&mut self, i: &mut crate::PatReference) {
- visit_pat_reference_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_rest_mut(&mut self, i: &mut crate::PatRest) {
- visit_pat_rest_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_slice_mut(&mut self, i: &mut crate::PatSlice) {
- visit_pat_slice_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_struct_mut(&mut self, i: &mut crate::PatStruct) {
- visit_pat_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_mut(&mut self, i: &mut crate::PatTuple) {
- visit_pat_tuple_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_struct_mut(&mut self, i: &mut crate::PatTupleStruct) {
- visit_pat_tuple_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_type_mut(&mut self, i: &mut crate::PatType) {
- visit_pat_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_wild_mut(&mut self, i: &mut crate::PatWild) {
- visit_pat_wild_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_mut(&mut self, i: &mut crate::Path) {
- visit_path_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_arguments_mut(&mut self, i: &mut crate::PathArguments) {
- visit_path_arguments_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_segment_mut(&mut self, i: &mut crate::PathSegment) {
- visit_path_segment_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pointer_mutability_mut(&mut self, i: &mut crate::PointerMutability) {
- visit_pointer_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_precise_capture_mut(&mut self, i: &mut crate::PreciseCapture) {
- visit_precise_capture_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_lifetime_mut(&mut self, i: &mut crate::PredicateLifetime) {
- visit_predicate_lifetime_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_type_mut(&mut self, i: &mut crate::PredicateType) {
- visit_predicate_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_qself_mut(&mut self, i: &mut crate::QSelf) {
- visit_qself_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_range_limits_mut(&mut self, i: &mut crate::RangeLimits) {
- visit_range_limits_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_receiver_mut(&mut self, i: &mut crate::Receiver) {
- visit_receiver_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_return_type_mut(&mut self, i: &mut crate::ReturnType) {
- visit_return_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_signature_mut(&mut self, i: &mut crate::Signature) {
- visit_signature_mut(self, i);
- }
- fn visit_span_mut(&mut self, i: &mut proc_macro2::Span) {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_static_mutability_mut(&mut self, i: &mut crate::StaticMutability) {
- visit_static_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_mut(&mut self, i: &mut crate::Stmt) {
- visit_stmt_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_macro_mut(&mut self, i: &mut crate::StmtMacro) {
- visit_stmt_macro_mut(self, i);
- }
- fn visit_token_stream_mut(&mut self, i: &mut proc_macro2::TokenStream) {}
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_mut(&mut self, i: &mut crate::TraitBound) {
- visit_trait_bound_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_modifier_mut(&mut self, i: &mut crate::TraitBoundModifier) {
- visit_trait_bound_modifier_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_mut(&mut self, i: &mut crate::TraitItem) {
- visit_trait_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_const_mut(&mut self, i: &mut crate::TraitItemConst) {
- visit_trait_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_fn_mut(&mut self, i: &mut crate::TraitItemFn) {
- visit_trait_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_macro_mut(&mut self, i: &mut crate::TraitItemMacro) {
- visit_trait_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_type_mut(&mut self, i: &mut crate::TraitItemType) {
- visit_trait_item_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_mut(&mut self, i: &mut crate::Type) {
- visit_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_array_mut(&mut self, i: &mut crate::TypeArray) {
- visit_type_array_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_bare_fn_mut(&mut self, i: &mut crate::TypeBareFn) {
- visit_type_bare_fn_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_group_mut(&mut self, i: &mut crate::TypeGroup) {
- visit_type_group_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_impl_trait_mut(&mut self, i: &mut crate::TypeImplTrait) {
- visit_type_impl_trait_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_infer_mut(&mut self, i: &mut crate::TypeInfer) {
- visit_type_infer_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_macro_mut(&mut self, i: &mut crate::TypeMacro) {
- visit_type_macro_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_never_mut(&mut self, i: &mut crate::TypeNever) {
- visit_type_never_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_mut(&mut self, i: &mut crate::TypeParam) {
- visit_type_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_bound_mut(&mut self, i: &mut crate::TypeParamBound) {
- visit_type_param_bound_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_paren_mut(&mut self, i: &mut crate::TypeParen) {
- visit_type_paren_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_path_mut(&mut self, i: &mut crate::TypePath) {
- visit_type_path_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_ptr_mut(&mut self, i: &mut crate::TypePtr) {
- visit_type_ptr_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_reference_mut(&mut self, i: &mut crate::TypeReference) {
- visit_type_reference_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_slice_mut(&mut self, i: &mut crate::TypeSlice) {
- visit_type_slice_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_trait_object_mut(&mut self, i: &mut crate::TypeTraitObject) {
- visit_type_trait_object_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_tuple_mut(&mut self, i: &mut crate::TypeTuple) {
- visit_type_tuple_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_un_op_mut(&mut self, i: &mut crate::UnOp) {
- visit_un_op_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_glob_mut(&mut self, i: &mut crate::UseGlob) {
- visit_use_glob_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_group_mut(&mut self, i: &mut crate::UseGroup) {
- visit_use_group_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_name_mut(&mut self, i: &mut crate::UseName) {
- visit_use_name_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_path_mut(&mut self, i: &mut crate::UsePath) {
- visit_use_path_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_rename_mut(&mut self, i: &mut crate::UseRename) {
- visit_use_rename_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_tree_mut(&mut self, i: &mut crate::UseTree) {
- visit_use_tree_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_variadic_mut(&mut self, i: &mut crate::Variadic) {
- visit_variadic_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_variant_mut(&mut self, i: &mut crate::Variant) {
- visit_variant_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_vis_restricted_mut(&mut self, i: &mut crate::VisRestricted) {
- visit_vis_restricted_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_visibility_mut(&mut self, i: &mut crate::Visibility) {
- visit_visibility_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_clause_mut(&mut self, i: &mut crate::WhereClause) {
- visit_where_clause_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_predicate_mut(&mut self, i: &mut crate::WherePredicate) {
- visit_where_predicate_mut(self, i);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_abi_mut<V>(v: &mut V, node: &mut crate::Abi)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.extern_token);
- if let Some(it) = &mut node.name {
- v.visit_lit_str_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_angle_bracketed_generic_arguments_mut<V>(
- v: &mut V,
- node: &mut crate::AngleBracketedGenericArguments,
- )
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.colon2_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_generic_argument_mut(it);
- }
- skip!(node.gt_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_arm_mut<V>(v: &mut V, node: &mut crate::Arm)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_pat_mut(&mut node.pat);
- if let Some(it) = &mut node.guard {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
- skip!(node.fat_arrow_token);
- v.visit_expr_mut(&mut *node.body);
- skip!(node.comma);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_assoc_const_mut<V>(v: &mut V, node: &mut crate::AssocConst)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.value);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_assoc_type_mut<V>(v: &mut V, node: &mut crate::AssocType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.eq_token);
- v.visit_type_mut(&mut node.ty);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_attr_style_mut<V>(v: &mut V, node: &mut crate::AttrStyle)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::AttrStyle::Outer => {}
- crate::AttrStyle::Inner(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_attribute_mut<V>(v: &mut V, node: &mut crate::Attribute)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.pound_token);
- v.visit_attr_style_mut(&mut node.style);
- skip!(node.bracket_token);
- v.visit_meta_mut(&mut node.meta);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_bare_fn_arg_mut<V>(v: &mut V, node: &mut crate::BareFnArg)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.name {
- v.visit_ident_mut(&mut (it).0);
- skip!((it).1);
- }
- v.visit_type_mut(&mut node.ty);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_bare_variadic_mut<V>(v: &mut V, node: &mut crate::BareVariadic)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.name {
- v.visit_ident_mut(&mut (it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_bin_op_mut<V>(v: &mut V, node: &mut crate::BinOp)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::BinOp::Add(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Sub(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Mul(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Div(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Rem(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::And(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Or(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXor(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAnd(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shl(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Eq(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Lt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Le(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ne(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ge(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Gt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::AddAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::SubAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::MulAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::DivAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::RemAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXorAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAndAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShlAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_block_mut<V>(v: &mut V, node: &mut crate::Block)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.brace_token);
- for it in &mut node.stmts {
- v.visit_stmt_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_bound_lifetimes_mut<V>(v: &mut V, node: &mut crate::BoundLifetimes)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.for_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.lifetimes) {
- let it = el.value_mut();
- v.visit_generic_param_mut(it);
- }
- skip!(node.gt_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_captured_param_mut<V>(v: &mut V, node: &mut crate::CapturedParam)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::CapturedParam::Ident(_binding_0) => {
- v.visit_ident_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_const_param_mut<V>(v: &mut V, node: &mut crate::ConstParam)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.eq_token);
- if let Some(it) = &mut node.default {
- v.visit_expr_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_constraint_mut<V>(v: &mut V, node: &mut crate::Constraint)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub fn visit_data_mut<V>(v: &mut V, node: &mut crate::Data)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Data::Struct(_binding_0) => {
- v.visit_data_struct_mut(_binding_0);
- }
- crate::Data::Enum(_binding_0) => {
- v.visit_data_enum_mut(_binding_0);
- }
- crate::Data::Union(_binding_0) => {
- v.visit_data_union_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub fn visit_data_enum_mut<V>(v: &mut V, node: &mut crate::DataEnum)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.enum_token);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.variants) {
- let it = el.value_mut();
- v.visit_variant_mut(it);
- }
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub fn visit_data_struct_mut<V>(v: &mut V, node: &mut crate::DataStruct)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.struct_token);
- v.visit_fields_mut(&mut node.fields);
- skip!(node.semi_token);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub fn visit_data_union_mut<V>(v: &mut V, node: &mut crate::DataUnion)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.union_token);
- v.visit_fields_named_mut(&mut node.fields);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub fn visit_derive_input_mut<V>(v: &mut V, node: &mut crate::DeriveInput)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_data_mut(&mut node.data);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_mut<V>(v: &mut V, node: &mut crate::Expr)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Expr::Array(_binding_0) => {
- full!(v.visit_expr_array_mut(_binding_0));
- }
- crate::Expr::Assign(_binding_0) => {
- full!(v.visit_expr_assign_mut(_binding_0));
- }
- crate::Expr::Async(_binding_0) => {
- full!(v.visit_expr_async_mut(_binding_0));
- }
- crate::Expr::Await(_binding_0) => {
- full!(v.visit_expr_await_mut(_binding_0));
- }
- crate::Expr::Binary(_binding_0) => {
- v.visit_expr_binary_mut(_binding_0);
- }
- crate::Expr::Block(_binding_0) => {
- full!(v.visit_expr_block_mut(_binding_0));
- }
- crate::Expr::Break(_binding_0) => {
- full!(v.visit_expr_break_mut(_binding_0));
- }
- crate::Expr::Call(_binding_0) => {
- v.visit_expr_call_mut(_binding_0);
- }
- crate::Expr::Cast(_binding_0) => {
- v.visit_expr_cast_mut(_binding_0);
- }
- crate::Expr::Closure(_binding_0) => {
- full!(v.visit_expr_closure_mut(_binding_0));
- }
- crate::Expr::Const(_binding_0) => {
- full!(v.visit_expr_const_mut(_binding_0));
- }
- crate::Expr::Continue(_binding_0) => {
- full!(v.visit_expr_continue_mut(_binding_0));
- }
- crate::Expr::Field(_binding_0) => {
- v.visit_expr_field_mut(_binding_0);
- }
- crate::Expr::ForLoop(_binding_0) => {
- full!(v.visit_expr_for_loop_mut(_binding_0));
- }
- crate::Expr::Group(_binding_0) => {
- v.visit_expr_group_mut(_binding_0);
- }
- crate::Expr::If(_binding_0) => {
- full!(v.visit_expr_if_mut(_binding_0));
- }
- crate::Expr::Index(_binding_0) => {
- v.visit_expr_index_mut(_binding_0);
- }
- crate::Expr::Infer(_binding_0) => {
- full!(v.visit_expr_infer_mut(_binding_0));
- }
- crate::Expr::Let(_binding_0) => {
- full!(v.visit_expr_let_mut(_binding_0));
- }
- crate::Expr::Lit(_binding_0) => {
- v.visit_expr_lit_mut(_binding_0);
- }
- crate::Expr::Loop(_binding_0) => {
- full!(v.visit_expr_loop_mut(_binding_0));
- }
- crate::Expr::Macro(_binding_0) => {
- v.visit_expr_macro_mut(_binding_0);
- }
- crate::Expr::Match(_binding_0) => {
- full!(v.visit_expr_match_mut(_binding_0));
- }
- crate::Expr::MethodCall(_binding_0) => {
- v.visit_expr_method_call_mut(_binding_0);
- }
- crate::Expr::Paren(_binding_0) => {
- v.visit_expr_paren_mut(_binding_0);
- }
- crate::Expr::Path(_binding_0) => {
- v.visit_expr_path_mut(_binding_0);
- }
- crate::Expr::Range(_binding_0) => {
- full!(v.visit_expr_range_mut(_binding_0));
- }
- crate::Expr::RawAddr(_binding_0) => {
- full!(v.visit_expr_raw_addr_mut(_binding_0));
- }
- crate::Expr::Reference(_binding_0) => {
- v.visit_expr_reference_mut(_binding_0);
- }
- crate::Expr::Repeat(_binding_0) => {
- full!(v.visit_expr_repeat_mut(_binding_0));
- }
- crate::Expr::Return(_binding_0) => {
- full!(v.visit_expr_return_mut(_binding_0));
- }
- crate::Expr::Struct(_binding_0) => {
- v.visit_expr_struct_mut(_binding_0);
- }
- crate::Expr::Try(_binding_0) => {
- full!(v.visit_expr_try_mut(_binding_0));
- }
- crate::Expr::TryBlock(_binding_0) => {
- full!(v.visit_expr_try_block_mut(_binding_0));
- }
- crate::Expr::Tuple(_binding_0) => {
- v.visit_expr_tuple_mut(_binding_0);
- }
- crate::Expr::Unary(_binding_0) => {
- v.visit_expr_unary_mut(_binding_0);
- }
- crate::Expr::Unsafe(_binding_0) => {
- full!(v.visit_expr_unsafe_mut(_binding_0));
- }
- crate::Expr::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- crate::Expr::While(_binding_0) => {
- full!(v.visit_expr_while_mut(_binding_0));
- }
- crate::Expr::Yield(_binding_0) => {
- full!(v.visit_expr_yield_mut(_binding_0));
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_array_mut<V>(v: &mut V, node: &mut crate::ExprArray)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_assign_mut<V>(v: &mut V, node: &mut crate::ExprAssign)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.left);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.right);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_async_mut<V>(v: &mut V, node: &mut crate::ExprAsync)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.async_token);
- skip!(node.capture);
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_await_mut<V>(v: &mut V, node: &mut crate::ExprAwait)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.base);
- skip!(node.dot_token);
- skip!(node.await_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_binary_mut<V>(v: &mut V, node: &mut crate::ExprBinary)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.left);
- v.visit_bin_op_mut(&mut node.op);
- v.visit_expr_mut(&mut *node.right);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_block_mut<V>(v: &mut V, node: &mut crate::ExprBlock)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_break_mut<V>(v: &mut V, node: &mut crate::ExprBreak)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.break_token);
- if let Some(it) = &mut node.label {
- v.visit_lifetime_mut(it);
- }
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_call_mut<V>(v: &mut V, node: &mut crate::ExprCall)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.func);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_cast_mut<V>(v: &mut V, node: &mut crate::ExprCast)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.as_token);
- v.visit_type_mut(&mut *node.ty);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_closure_mut<V>(v: &mut V, node: &mut crate::ExprClosure)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- skip!(node.constness);
- skip!(node.movability);
- skip!(node.asyncness);
- skip!(node.capture);
- skip!(node.or1_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- skip!(node.or2_token);
- v.visit_return_type_mut(&mut node.output);
- v.visit_expr_mut(&mut *node.body);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_const_mut<V>(v: &mut V, node: &mut crate::ExprConst)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_continue_mut<V>(v: &mut V, node: &mut crate::ExprContinue)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.continue_token);
- if let Some(it) = &mut node.label {
- v.visit_lifetime_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_field_mut<V>(v: &mut V, node: &mut crate::ExprField)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.base);
- skip!(node.dot_token);
- v.visit_member_mut(&mut node.member);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_for_loop_mut<V>(v: &mut V, node: &mut crate::ExprForLoop)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.for_token);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.in_token);
- v.visit_expr_mut(&mut *node.expr);
- v.visit_block_mut(&mut node.body);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_group_mut<V>(v: &mut V, node: &mut crate::ExprGroup)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.group_token);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_if_mut<V>(v: &mut V, node: &mut crate::ExprIf)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.if_token);
- v.visit_expr_mut(&mut *node.cond);
- v.visit_block_mut(&mut node.then_branch);
- if let Some(it) = &mut node.else_branch {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_index_mut<V>(v: &mut V, node: &mut crate::ExprIndex)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.bracket_token);
- v.visit_expr_mut(&mut *node.index);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_infer_mut<V>(v: &mut V, node: &mut crate::ExprInfer)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.underscore_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_let_mut<V>(v: &mut V, node: &mut crate::ExprLet)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.let_token);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_lit_mut<V>(v: &mut V, node: &mut crate::ExprLit)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_lit_mut(&mut node.lit);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_loop_mut<V>(v: &mut V, node: &mut crate::ExprLoop)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.loop_token);
- v.visit_block_mut(&mut node.body);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_macro_mut<V>(v: &mut V, node: &mut crate::ExprMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_match_mut<V>(v: &mut V, node: &mut crate::ExprMatch)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.match_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.brace_token);
- for it in &mut node.arms {
- v.visit_arm_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_method_call_mut<V>(v: &mut V, node: &mut crate::ExprMethodCall)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.receiver);
- skip!(node.dot_token);
- v.visit_ident_mut(&mut node.method);
- if let Some(it) = &mut node.turbofish {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_paren_mut<V>(v: &mut V, node: &mut crate::ExprParen)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_path_mut<V>(v: &mut V, node: &mut crate::ExprPath)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_range_mut<V>(v: &mut V, node: &mut crate::ExprRange)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.start {
- v.visit_expr_mut(&mut **it);
- }
- v.visit_range_limits_mut(&mut node.limits);
- if let Some(it) = &mut node.end {
- v.visit_expr_mut(&mut **it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_raw_addr_mut<V>(v: &mut V, node: &mut crate::ExprRawAddr)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.raw);
- v.visit_pointer_mutability_mut(&mut node.mutability);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_reference_mut<V>(v: &mut V, node: &mut crate::ExprReference)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_repeat_mut<V>(v: &mut V, node: &mut crate::ExprRepeat)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
- v.visit_expr_mut(&mut *node.len);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_return_mut<V>(v: &mut V, node: &mut crate::ExprReturn)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.return_token);
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_struct_mut<V>(v: &mut V, node: &mut crate::ExprStruct)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.fields) {
- let it = el.value_mut();
- v.visit_field_value_mut(it);
- }
- skip!(node.dot2_token);
- if let Some(it) = &mut node.rest {
- v.visit_expr_mut(&mut **it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_try_mut<V>(v: &mut V, node: &mut crate::ExprTry)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.question_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_try_block_mut<V>(v: &mut V, node: &mut crate::ExprTryBlock)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.try_token);
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_tuple_mut<V>(v: &mut V, node: &mut crate::ExprTuple)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_expr_unary_mut<V>(v: &mut V, node: &mut crate::ExprUnary)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_un_op_mut(&mut node.op);
- v.visit_expr_mut(&mut *node.expr);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_unsafe_mut<V>(v: &mut V, node: &mut crate::ExprUnsafe)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.unsafe_token);
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_while_mut<V>(v: &mut V, node: &mut crate::ExprWhile)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.while_token);
- v.visit_expr_mut(&mut *node.cond);
- v.visit_block_mut(&mut node.body);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_expr_yield_mut<V>(v: &mut V, node: &mut crate::ExprYield)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.yield_token);
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_field_mut<V>(v: &mut V, node: &mut crate::Field)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_field_mutability_mut(&mut node.mutability);
- if let Some(it) = &mut node.ident {
- v.visit_ident_mut(it);
- }
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_field_mutability_mut<V>(v: &mut V, node: &mut crate::FieldMutability)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::FieldMutability::None => {}
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_field_pat_mut<V>(v: &mut V, node: &mut crate::FieldPat)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_member_mut(&mut node.member);
- skip!(node.colon_token);
- v.visit_pat_mut(&mut *node.pat);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_field_value_mut<V>(v: &mut V, node: &mut crate::FieldValue)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_member_mut(&mut node.member);
- skip!(node.colon_token);
- v.visit_expr_mut(&mut node.expr);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_fields_mut<V>(v: &mut V, node: &mut crate::Fields)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Fields::Named(_binding_0) => {
- v.visit_fields_named_mut(_binding_0);
- }
- crate::Fields::Unnamed(_binding_0) => {
- v.visit_fields_unnamed_mut(_binding_0);
- }
- crate::Fields::Unit => {}
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_fields_named_mut<V>(v: &mut V, node: &mut crate::FieldsNamed)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.named) {
- let it = el.value_mut();
- v.visit_field_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_fields_unnamed_mut<V>(v: &mut V, node: &mut crate::FieldsUnnamed)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.unnamed) {
- let it = el.value_mut();
- v.visit_field_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_file_mut<V>(v: &mut V, node: &mut crate::File)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.shebang);
- v.visit_attributes_mut(&mut node.attrs);
- for it in &mut node.items {
- v.visit_item_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_fn_arg_mut<V>(v: &mut V, node: &mut crate::FnArg)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- v.visit_receiver_mut(_binding_0);
- }
- crate::FnArg::Typed(_binding_0) => {
- v.visit_pat_type_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_foreign_item_mut<V>(v: &mut V, node: &mut crate::ForeignItem)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- v.visit_foreign_item_fn_mut(_binding_0);
- }
- crate::ForeignItem::Static(_binding_0) => {
- v.visit_foreign_item_static_mut(_binding_0);
- }
- crate::ForeignItem::Type(_binding_0) => {
- v.visit_foreign_item_type_mut(_binding_0);
- }
- crate::ForeignItem::Macro(_binding_0) => {
- v.visit_foreign_item_macro_mut(_binding_0);
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_foreign_item_fn_mut<V>(v: &mut V, node: &mut crate::ForeignItemFn)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_signature_mut(&mut node.sig);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_foreign_item_macro_mut<V>(v: &mut V, node: &mut crate::ForeignItemMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_foreign_item_static_mut<V>(v: &mut V, node: &mut crate::ForeignItemStatic)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.static_token);
- v.visit_static_mutability_mut(&mut node.mutability);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_foreign_item_type_mut<V>(v: &mut V, node: &mut crate::ForeignItemType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.semi_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_generic_argument_mut<V>(v: &mut V, node: &mut crate::GenericArgument)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::GenericArgument::Type(_binding_0) => {
- v.visit_type_mut(_binding_0);
- }
- crate::GenericArgument::Const(_binding_0) => {
- v.visit_expr_mut(_binding_0);
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- v.visit_assoc_type_mut(_binding_0);
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- v.visit_assoc_const_mut(_binding_0);
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- v.visit_constraint_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_generic_param_mut<V>(v: &mut V, node: &mut crate::GenericParam)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- v.visit_lifetime_param_mut(_binding_0);
- }
- crate::GenericParam::Type(_binding_0) => {
- v.visit_type_param_mut(_binding_0);
- }
- crate::GenericParam::Const(_binding_0) => {
- v.visit_const_param_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_generics_mut<V>(v: &mut V, node: &mut crate::Generics)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.params) {
- let it = el.value_mut();
- v.visit_generic_param_mut(it);
- }
- skip!(node.gt_token);
- if let Some(it) = &mut node.where_clause {
- v.visit_where_clause_mut(it);
- }
- }
- pub fn visit_ident_mut<V>(v: &mut V, node: &mut proc_macro2::Ident)
- where
- V: VisitMut + ?Sized,
- {
- let mut span = node.span();
- v.visit_span_mut(&mut span);
- node.set_span(span);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_item_mut<V>(v: &mut V, node: &mut crate::ImplItem)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::ImplItem::Const(_binding_0) => {
- v.visit_impl_item_const_mut(_binding_0);
- }
- crate::ImplItem::Fn(_binding_0) => {
- v.visit_impl_item_fn_mut(_binding_0);
- }
- crate::ImplItem::Type(_binding_0) => {
- v.visit_impl_item_type_mut(_binding_0);
- }
- crate::ImplItem::Macro(_binding_0) => {
- v.visit_impl_item_macro_mut(_binding_0);
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_item_const_mut<V>(v: &mut V, node: &mut crate::ImplItemConst)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.expr);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_item_fn_mut<V>(v: &mut V, node: &mut crate::ImplItemFn)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- v.visit_signature_mut(&mut node.sig);
- v.visit_block_mut(&mut node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_item_macro_mut<V>(v: &mut V, node: &mut crate::ImplItemMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_item_type_mut<V>(v: &mut V, node: &mut crate::ImplItemType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_impl_restriction_mut<V>(v: &mut V, node: &mut crate::ImplRestriction)
- where
- V: VisitMut + ?Sized,
- {
- match *node {}
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_index_mut<V>(v: &mut V, node: &mut crate::Index)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.index);
- v.visit_span_mut(&mut node.span);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_mut<V>(v: &mut V, node: &mut crate::Item)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Item::Const(_binding_0) => {
- v.visit_item_const_mut(_binding_0);
- }
- crate::Item::Enum(_binding_0) => {
- v.visit_item_enum_mut(_binding_0);
- }
- crate::Item::ExternCrate(_binding_0) => {
- v.visit_item_extern_crate_mut(_binding_0);
- }
- crate::Item::Fn(_binding_0) => {
- v.visit_item_fn_mut(_binding_0);
- }
- crate::Item::ForeignMod(_binding_0) => {
- v.visit_item_foreign_mod_mut(_binding_0);
- }
- crate::Item::Impl(_binding_0) => {
- v.visit_item_impl_mut(_binding_0);
- }
- crate::Item::Macro(_binding_0) => {
- v.visit_item_macro_mut(_binding_0);
- }
- crate::Item::Mod(_binding_0) => {
- v.visit_item_mod_mut(_binding_0);
- }
- crate::Item::Static(_binding_0) => {
- v.visit_item_static_mut(_binding_0);
- }
- crate::Item::Struct(_binding_0) => {
- v.visit_item_struct_mut(_binding_0);
- }
- crate::Item::Trait(_binding_0) => {
- v.visit_item_trait_mut(_binding_0);
- }
- crate::Item::TraitAlias(_binding_0) => {
- v.visit_item_trait_alias_mut(_binding_0);
- }
- crate::Item::Type(_binding_0) => {
- v.visit_item_type_mut(_binding_0);
- }
- crate::Item::Union(_binding_0) => {
- v.visit_item_union_mut(_binding_0);
- }
- crate::Item::Use(_binding_0) => {
- v.visit_item_use_mut(_binding_0);
- }
- crate::Item::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_const_mut<V>(v: &mut V, node: &mut crate::ItemConst)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_enum_mut<V>(v: &mut V, node: &mut crate::ItemEnum)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.enum_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.variants) {
- let it = el.value_mut();
- v.visit_variant_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_extern_crate_mut<V>(v: &mut V, node: &mut crate::ItemExternCrate)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.extern_token);
- skip!(node.crate_token);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.rename {
- skip!((it).0);
- v.visit_ident_mut(&mut (it).1);
- }
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_fn_mut<V>(v: &mut V, node: &mut crate::ItemFn)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_signature_mut(&mut node.sig);
- v.visit_block_mut(&mut *node.block);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_foreign_mod_mut<V>(v: &mut V, node: &mut crate::ItemForeignMod)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.unsafety);
- v.visit_abi_mut(&mut node.abi);
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_foreign_item_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_impl_mut<V>(v: &mut V, node: &mut crate::ItemImpl)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.defaultness);
- skip!(node.unsafety);
- skip!(node.impl_token);
- v.visit_generics_mut(&mut node.generics);
- if let Some(it) = &mut node.trait_ {
- skip!((it).0);
- v.visit_path_mut(&mut (it).1);
- skip!((it).2);
- }
- v.visit_type_mut(&mut *node.self_ty);
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_impl_item_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_macro_mut<V>(v: &mut V, node: &mut crate::ItemMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.ident {
- v.visit_ident_mut(it);
- }
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_mod_mut<V>(v: &mut V, node: &mut crate::ItemMod)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.unsafety);
- skip!(node.mod_token);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.content {
- skip!((it).0);
- for it in &mut (it).1 {
- v.visit_item_mut(it);
- }
- }
- skip!(node.semi);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_static_mut<V>(v: &mut V, node: &mut crate::ItemStatic)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.static_token);
- v.visit_static_mutability_mut(&mut node.mutability);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_struct_mut<V>(v: &mut V, node: &mut crate::ItemStruct)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.struct_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_fields_mut(&mut node.fields);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_trait_mut<V>(v: &mut V, node: &mut crate::ItemTrait)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.unsafety);
- skip!(node.auto_token);
- if let Some(it) = &mut node.restriction {
- v.visit_impl_restriction_mut(it);
- }
- skip!(node.trait_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.supertraits) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_trait_item_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_trait_alias_mut<V>(v: &mut V, node: &mut crate::ItemTraitAlias)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.trait_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_type_mut<V>(v: &mut V, node: &mut crate::ItemType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_union_mut<V>(v: &mut V, node: &mut crate::ItemUnion)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.union_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_fields_named_mut(&mut node.fields);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_item_use_mut<V>(v: &mut V, node: &mut crate::ItemUse)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.use_token);
- skip!(node.leading_colon);
- v.visit_use_tree_mut(&mut node.tree);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_label_mut<V>(v: &mut V, node: &mut crate::Label)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_lifetime_mut(&mut node.name);
- skip!(node.colon_token);
- }
- pub fn visit_lifetime_mut<V>(v: &mut V, node: &mut crate::Lifetime)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_span_mut(&mut node.apostrophe);
- v.visit_ident_mut(&mut node.ident);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_lifetime_param_mut<V>(v: &mut V, node: &mut crate::LifetimeParam)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_lifetime_mut(&mut node.lifetime);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_lifetime_mut(it);
- }
- }
- pub fn visit_lit_mut<V>(v: &mut V, node: &mut crate::Lit)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Lit::Str(_binding_0) => {
- v.visit_lit_str_mut(_binding_0);
- }
- crate::Lit::ByteStr(_binding_0) => {
- v.visit_lit_byte_str_mut(_binding_0);
- }
- crate::Lit::CStr(_binding_0) => {
- v.visit_lit_cstr_mut(_binding_0);
- }
- crate::Lit::Byte(_binding_0) => {
- v.visit_lit_byte_mut(_binding_0);
- }
- crate::Lit::Char(_binding_0) => {
- v.visit_lit_char_mut(_binding_0);
- }
- crate::Lit::Int(_binding_0) => {
- v.visit_lit_int_mut(_binding_0);
- }
- crate::Lit::Float(_binding_0) => {
- v.visit_lit_float_mut(_binding_0);
- }
- crate::Lit::Bool(_binding_0) => {
- v.visit_lit_bool_mut(_binding_0);
- }
- crate::Lit::Verbatim(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- pub fn visit_lit_bool_mut<V>(v: &mut V, node: &mut crate::LitBool)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.value);
- v.visit_span_mut(&mut node.span);
- }
- pub fn visit_lit_byte_mut<V>(v: &mut V, node: &mut crate::LitByte)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_byte_str_mut<V>(v: &mut V, node: &mut crate::LitByteStr)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_cstr_mut<V>(v: &mut V, node: &mut crate::LitCStr)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_char_mut<V>(v: &mut V, node: &mut crate::LitChar)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_float_mut<V>(v: &mut V, node: &mut crate::LitFloat)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_int_mut<V>(v: &mut V, node: &mut crate::LitInt)
- where
- V: VisitMut + ?Sized,
- {}
- pub fn visit_lit_str_mut<V>(v: &mut V, node: &mut crate::LitStr)
- where
- V: VisitMut + ?Sized,
- {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_local_mut<V>(v: &mut V, node: &mut crate::Local)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.let_token);
- v.visit_pat_mut(&mut node.pat);
- if let Some(it) = &mut node.init {
- v.visit_local_init_mut(it);
- }
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_local_init_mut<V>(v: &mut V, node: &mut crate::LocalInit)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- if let Some(it) = &mut node.diverge {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_macro_mut<V>(v: &mut V, node: &mut crate::Macro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_path_mut(&mut node.path);
- skip!(node.bang_token);
- v.visit_macro_delimiter_mut(&mut node.delimiter);
- v.visit_token_stream_mut(&mut node.tokens);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_macro_delimiter_mut<V>(v: &mut V, node: &mut crate::MacroDelimiter)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::MacroDelimiter::Paren(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Brace(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Bracket(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_member_mut<V>(v: &mut V, node: &mut crate::Member)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Member::Named(_binding_0) => {
- v.visit_ident_mut(_binding_0);
- }
- crate::Member::Unnamed(_binding_0) => {
- v.visit_index_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_meta_mut<V>(v: &mut V, node: &mut crate::Meta)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Meta::Path(_binding_0) => {
- v.visit_path_mut(_binding_0);
- }
- crate::Meta::List(_binding_0) => {
- v.visit_meta_list_mut(_binding_0);
- }
- crate::Meta::NameValue(_binding_0) => {
- v.visit_meta_name_value_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_meta_list_mut<V>(v: &mut V, node: &mut crate::MetaList)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_path_mut(&mut node.path);
- v.visit_macro_delimiter_mut(&mut node.delimiter);
- v.visit_token_stream_mut(&mut node.tokens);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_meta_name_value_mut<V>(v: &mut V, node: &mut crate::MetaNameValue)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_path_mut(&mut node.path);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.value);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_parenthesized_generic_arguments_mut<V>(
- v: &mut V,
- node: &mut crate::ParenthesizedGenericArguments,
- )
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_type_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_mut<V>(v: &mut V, node: &mut crate::Pat)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Pat::Const(_binding_0) => {
- v.visit_expr_const_mut(_binding_0);
- }
- crate::Pat::Ident(_binding_0) => {
- v.visit_pat_ident_mut(_binding_0);
- }
- crate::Pat::Lit(_binding_0) => {
- v.visit_expr_lit_mut(_binding_0);
- }
- crate::Pat::Macro(_binding_0) => {
- v.visit_expr_macro_mut(_binding_0);
- }
- crate::Pat::Or(_binding_0) => {
- v.visit_pat_or_mut(_binding_0);
- }
- crate::Pat::Paren(_binding_0) => {
- v.visit_pat_paren_mut(_binding_0);
- }
- crate::Pat::Path(_binding_0) => {
- v.visit_expr_path_mut(_binding_0);
- }
- crate::Pat::Range(_binding_0) => {
- v.visit_expr_range_mut(_binding_0);
- }
- crate::Pat::Reference(_binding_0) => {
- v.visit_pat_reference_mut(_binding_0);
- }
- crate::Pat::Rest(_binding_0) => {
- v.visit_pat_rest_mut(_binding_0);
- }
- crate::Pat::Slice(_binding_0) => {
- v.visit_pat_slice_mut(_binding_0);
- }
- crate::Pat::Struct(_binding_0) => {
- v.visit_pat_struct_mut(_binding_0);
- }
- crate::Pat::Tuple(_binding_0) => {
- v.visit_pat_tuple_mut(_binding_0);
- }
- crate::Pat::TupleStruct(_binding_0) => {
- v.visit_pat_tuple_struct_mut(_binding_0);
- }
- crate::Pat::Type(_binding_0) => {
- v.visit_pat_type_mut(_binding_0);
- }
- crate::Pat::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- crate::Pat::Wild(_binding_0) => {
- v.visit_pat_wild_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_ident_mut<V>(v: &mut V, node: &mut crate::PatIdent)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.by_ref);
- skip!(node.mutability);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.subpat {
- skip!((it).0);
- v.visit_pat_mut(&mut *(it).1);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_or_mut<V>(v: &mut V, node: &mut crate::PatOr)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.leading_vert);
- for mut el in Punctuated::pairs_mut(&mut node.cases) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_paren_mut<V>(v: &mut V, node: &mut crate::PatParen)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- v.visit_pat_mut(&mut *node.pat);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_reference_mut<V>(v: &mut V, node: &mut crate::PatReference)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_pat_mut(&mut *node.pat);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_rest_mut<V>(v: &mut V, node: &mut crate::PatRest)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.dot2_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_slice_mut<V>(v: &mut V, node: &mut crate::PatSlice)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_struct_mut<V>(v: &mut V, node: &mut crate::PatStruct)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.fields) {
- let it = el.value_mut();
- v.visit_field_pat_mut(it);
- }
- if let Some(it) = &mut node.rest {
- v.visit_pat_rest_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_tuple_mut<V>(v: &mut V, node: &mut crate::PatTuple)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_tuple_struct_mut<V>(v: &mut V, node: &mut crate::PatTupleStruct)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_type_mut<V>(v: &mut V, node: &mut crate::PatType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pat_wild_mut<V>(v: &mut V, node: &mut crate::PatWild)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.underscore_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_path_mut<V>(v: &mut V, node: &mut crate::Path)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.leading_colon);
- for mut el in Punctuated::pairs_mut(&mut node.segments) {
- let it = el.value_mut();
- v.visit_path_segment_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_path_arguments_mut<V>(v: &mut V, node: &mut crate::PathArguments)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::PathArguments::None => {}
- crate::PathArguments::AngleBracketed(_binding_0) => {
- v.visit_angle_bracketed_generic_arguments_mut(_binding_0);
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- v.visit_parenthesized_generic_arguments_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_path_segment_mut<V>(v: &mut V, node: &mut crate::PathSegment)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- v.visit_path_arguments_mut(&mut node.arguments);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_pointer_mutability_mut<V>(v: &mut V, node: &mut crate::PointerMutability)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::PointerMutability::Const(_binding_0) => {
- skip!(_binding_0);
- }
- crate::PointerMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_precise_capture_mut<V>(v: &mut V, node: &mut crate::PreciseCapture)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.use_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.params) {
- let it = el.value_mut();
- v.visit_captured_param_mut(it);
- }
- skip!(node.gt_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_predicate_lifetime_mut<V>(v: &mut V, node: &mut crate::PredicateLifetime)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_lifetime_mut(&mut node.lifetime);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_lifetime_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_predicate_type_mut<V>(v: &mut V, node: &mut crate::PredicateType)
- where
- V: VisitMut + ?Sized,
- {
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- v.visit_type_mut(&mut node.bounded_ty);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_qself_mut<V>(v: &mut V, node: &mut crate::QSelf)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.lt_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.position);
- skip!(node.as_token);
- skip!(node.gt_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_range_limits_mut<V>(v: &mut V, node: &mut crate::RangeLimits)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::RangeLimits::HalfOpen(_binding_0) => {
- skip!(_binding_0);
- }
- crate::RangeLimits::Closed(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_receiver_mut<V>(v: &mut V, node: &mut crate::Receiver)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.reference {
- skip!((it).0);
- if let Some(it) = &mut (it).1 {
- v.visit_lifetime_mut(it);
- }
- }
- skip!(node.mutability);
- skip!(node.self_token);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_return_type_mut<V>(v: &mut V, node: &mut crate::ReturnType)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::ReturnType::Default => {}
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- skip!(_binding_0);
- v.visit_type_mut(&mut **_binding_1);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_signature_mut<V>(v: &mut V, node: &mut crate::Signature)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.constness);
- skip!(node.asyncness);
- skip!(node.unsafety);
- if let Some(it) = &mut node.abi {
- v.visit_abi_mut(it);
- }
- skip!(node.fn_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_fn_arg_mut(it);
- }
- if let Some(it) = &mut node.variadic {
- v.visit_variadic_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
- }
- pub fn visit_span_mut<V>(v: &mut V, node: &mut proc_macro2::Span)
- where
- V: VisitMut + ?Sized,
- {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_static_mutability_mut<V>(v: &mut V, node: &mut crate::StaticMutability)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::StaticMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- crate::StaticMutability::None => {}
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_stmt_mut<V>(v: &mut V, node: &mut crate::Stmt)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Stmt::Local(_binding_0) => {
- v.visit_local_mut(_binding_0);
- }
- crate::Stmt::Item(_binding_0) => {
- v.visit_item_mut(_binding_0);
- }
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- v.visit_expr_mut(_binding_0);
- skip!(_binding_1);
- }
- crate::Stmt::Macro(_binding_0) => {
- v.visit_stmt_macro_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_stmt_macro_mut<V>(v: &mut V, node: &mut crate::StmtMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_trait_bound_mut<V>(v: &mut V, node: &mut crate::TraitBound)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.paren_token);
- v.visit_trait_bound_modifier_mut(&mut node.modifier);
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_trait_bound_modifier_mut<V>(v: &mut V, node: &mut crate::TraitBoundModifier)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::TraitBoundModifier::None => {}
- crate::TraitBoundModifier::Maybe(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_trait_item_mut<V>(v: &mut V, node: &mut crate::TraitItem)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::TraitItem::Const(_binding_0) => {
- v.visit_trait_item_const_mut(_binding_0);
- }
- crate::TraitItem::Fn(_binding_0) => {
- v.visit_trait_item_fn_mut(_binding_0);
- }
- crate::TraitItem::Type(_binding_0) => {
- v.visit_trait_item_type_mut(_binding_0);
- }
- crate::TraitItem::Macro(_binding_0) => {
- v.visit_trait_item_macro_mut(_binding_0);
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_trait_item_const_mut<V>(v: &mut V, node: &mut crate::TraitItemConst)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- if let Some(it) = &mut node.default {
- skip!((it).0);
- v.visit_expr_mut(&mut (it).1);
- }
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_trait_item_fn_mut<V>(v: &mut V, node: &mut crate::TraitItemFn)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_signature_mut(&mut node.sig);
- if let Some(it) = &mut node.default {
- v.visit_block_mut(it);
- }
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_trait_item_macro_mut<V>(v: &mut V, node: &mut crate::TraitItemMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_trait_item_type_mut<V>(v: &mut V, node: &mut crate::TraitItemType)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- if let Some(it) = &mut node.default {
- skip!((it).0);
- v.visit_type_mut(&mut (it).1);
- }
- skip!(node.semi_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_mut<V>(v: &mut V, node: &mut crate::Type)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Type::Array(_binding_0) => {
- v.visit_type_array_mut(_binding_0);
- }
- crate::Type::BareFn(_binding_0) => {
- v.visit_type_bare_fn_mut(_binding_0);
- }
- crate::Type::Group(_binding_0) => {
- v.visit_type_group_mut(_binding_0);
- }
- crate::Type::ImplTrait(_binding_0) => {
- v.visit_type_impl_trait_mut(_binding_0);
- }
- crate::Type::Infer(_binding_0) => {
- v.visit_type_infer_mut(_binding_0);
- }
- crate::Type::Macro(_binding_0) => {
- v.visit_type_macro_mut(_binding_0);
- }
- crate::Type::Never(_binding_0) => {
- v.visit_type_never_mut(_binding_0);
- }
- crate::Type::Paren(_binding_0) => {
- v.visit_type_paren_mut(_binding_0);
- }
- crate::Type::Path(_binding_0) => {
- v.visit_type_path_mut(_binding_0);
- }
- crate::Type::Ptr(_binding_0) => {
- v.visit_type_ptr_mut(_binding_0);
- }
- crate::Type::Reference(_binding_0) => {
- v.visit_type_reference_mut(_binding_0);
- }
- crate::Type::Slice(_binding_0) => {
- v.visit_type_slice_mut(_binding_0);
- }
- crate::Type::TraitObject(_binding_0) => {
- v.visit_type_trait_object_mut(_binding_0);
- }
- crate::Type::Tuple(_binding_0) => {
- v.visit_type_tuple_mut(_binding_0);
- }
- crate::Type::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_array_mut<V>(v: &mut V, node: &mut crate::TypeArray)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.bracket_token);
- v.visit_type_mut(&mut *node.elem);
- skip!(node.semi_token);
- v.visit_expr_mut(&mut node.len);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_bare_fn_mut<V>(v: &mut V, node: &mut crate::TypeBareFn)
- where
- V: VisitMut + ?Sized,
- {
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- skip!(node.unsafety);
- if let Some(it) = &mut node.abi {
- v.visit_abi_mut(it);
- }
- skip!(node.fn_token);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_bare_fn_arg_mut(it);
- }
- if let Some(it) = &mut node.variadic {
- v.visit_bare_variadic_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_group_mut<V>(v: &mut V, node: &mut crate::TypeGroup)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.group_token);
- v.visit_type_mut(&mut *node.elem);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_impl_trait_mut<V>(v: &mut V, node: &mut crate::TypeImplTrait)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.impl_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_infer_mut<V>(v: &mut V, node: &mut crate::TypeInfer)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.underscore_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_macro_mut<V>(v: &mut V, node: &mut crate::TypeMacro)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_macro_mut(&mut node.mac);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_never_mut<V>(v: &mut V, node: &mut crate::TypeNever)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.bang_token);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_param_mut<V>(v: &mut V, node: &mut crate::TypeParam)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.eq_token);
- if let Some(it) = &mut node.default {
- v.visit_type_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_param_bound_mut<V>(v: &mut V, node: &mut crate::TypeParamBound)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- v.visit_trait_bound_mut(_binding_0);
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- full!(v.visit_precise_capture_mut(_binding_0));
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_paren_mut<V>(v: &mut V, node: &mut crate::TypeParen)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.paren_token);
- v.visit_type_mut(&mut *node.elem);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_path_mut<V>(v: &mut V, node: &mut crate::TypePath)
- where
- V: VisitMut + ?Sized,
- {
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_ptr_mut<V>(v: &mut V, node: &mut crate::TypePtr)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.star_token);
- skip!(node.const_token);
- skip!(node.mutability);
- v.visit_type_mut(&mut *node.elem);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_reference_mut<V>(v: &mut V, node: &mut crate::TypeReference)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.and_token);
- if let Some(it) = &mut node.lifetime {
- v.visit_lifetime_mut(it);
- }
- skip!(node.mutability);
- v.visit_type_mut(&mut *node.elem);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_slice_mut<V>(v: &mut V, node: &mut crate::TypeSlice)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.bracket_token);
- v.visit_type_mut(&mut *node.elem);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_trait_object_mut<V>(v: &mut V, node: &mut crate::TypeTraitObject)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.dyn_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_type_tuple_mut<V>(v: &mut V, node: &mut crate::TypeTuple)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_type_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_un_op_mut<V>(v: &mut V, node: &mut crate::UnOp)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::UnOp::Deref(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Not(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Neg(_binding_0) => {
- skip!(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_glob_mut<V>(v: &mut V, node: &mut crate::UseGlob)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.star_token);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_group_mut<V>(v: &mut V, node: &mut crate::UseGroup)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.items) {
- let it = el.value_mut();
- v.visit_use_tree_mut(it);
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_name_mut<V>(v: &mut V, node: &mut crate::UseName)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_path_mut<V>(v: &mut V, node: &mut crate::UsePath)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon2_token);
- v.visit_use_tree_mut(&mut *node.tree);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_rename_mut<V>(v: &mut V, node: &mut crate::UseRename)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_ident_mut(&mut node.ident);
- skip!(node.as_token);
- v.visit_ident_mut(&mut node.rename);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_use_tree_mut<V>(v: &mut V, node: &mut crate::UseTree)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::UseTree::Path(_binding_0) => {
- v.visit_use_path_mut(_binding_0);
- }
- crate::UseTree::Name(_binding_0) => {
- v.visit_use_name_mut(_binding_0);
- }
- crate::UseTree::Rename(_binding_0) => {
- v.visit_use_rename_mut(_binding_0);
- }
- crate::UseTree::Glob(_binding_0) => {
- v.visit_use_glob_mut(_binding_0);
- }
- crate::UseTree::Group(_binding_0) => {
- v.visit_use_group_mut(_binding_0);
- }
- }
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub fn visit_variadic_mut<V>(v: &mut V, node: &mut crate::Variadic)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.pat {
- v.visit_pat_mut(&mut *(it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_variant_mut<V>(v: &mut V, node: &mut crate::Variant)
- where
- V: VisitMut + ?Sized,
- {
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_ident_mut(&mut node.ident);
- v.visit_fields_mut(&mut node.fields);
- if let Some(it) = &mut node.discriminant {
- skip!((it).0);
- v.visit_expr_mut(&mut (it).1);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_vis_restricted_mut<V>(v: &mut V, node: &mut crate::VisRestricted)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.pub_token);
- skip!(node.paren_token);
- skip!(node.in_token);
- v.visit_path_mut(&mut *node.path);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_visibility_mut<V>(v: &mut V, node: &mut crate::Visibility)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::Visibility::Public(_binding_0) => {
- skip!(_binding_0);
- }
- crate::Visibility::Restricted(_binding_0) => {
- v.visit_vis_restricted_mut(_binding_0);
- }
- crate::Visibility::Inherited => {}
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_where_clause_mut<V>(v: &mut V, node: &mut crate::WhereClause)
- where
- V: VisitMut + ?Sized,
- {
- skip!(node.where_token);
- for mut el in Punctuated::pairs_mut(&mut node.predicates) {
- let it = el.value_mut();
- v.visit_where_predicate_mut(it);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- pub fn visit_where_predicate_mut<V>(v: &mut V, node: &mut crate::WherePredicate)
- where
- V: VisitMut + ?Sized,
- {
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- v.visit_predicate_lifetime_mut(_binding_0);
- }
- crate::WherePredicate::Type(_binding_0) => {
- v.visit_predicate_type_mut(_binding_0);
- }
- }
- }
|