summaryrefslogtreecommitdiff
path: root/vendor/syn/src/gen
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/syn/src/gen')
-rw-r--r--vendor/syn/src/gen/clone.rs2267
-rw-r--r--vendor/syn/src/gen/debug.rs3238
-rw-r--r--vendor/syn/src/gen/eq.rs2306
-rw-r--r--vendor/syn/src/gen/fold.rs3902
-rw-r--r--vendor/syn/src/gen/hash.rs2876
-rw-r--r--vendor/syn/src/gen/token.css737
-rw-r--r--vendor/syn/src/gen/visit.rs3941
-rw-r--r--vendor/syn/src/gen/visit_mut.rs3759
8 files changed, 0 insertions, 23026 deletions
diff --git a/vendor/syn/src/gen/clone.rs b/vendor/syn/src/gen/clone.rs
deleted file mode 100644
index be2b6984..00000000
--- a/vendor/syn/src/gen/clone.rs
+++ /dev/null
@@ -1,2267 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(clippy::clone_on_copy, clippy::expl_impl_clone_on_copy)]
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Abi {
- fn clone(&self) -> Self {
- crate::Abi {
- extern_token: self.extern_token.clone(),
- name: self.name.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AngleBracketedGenericArguments {
- fn clone(&self) -> Self {
- crate::AngleBracketedGenericArguments {
- colon2_token: self.colon2_token.clone(),
- lt_token: self.lt_token.clone(),
- args: self.args.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Arm {
- fn clone(&self) -> Self {
- crate::Arm {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- guard: self.guard.clone(),
- fat_arrow_token: self.fat_arrow_token.clone(),
- body: self.body.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AssocConst {
- fn clone(&self) -> Self {
- crate::AssocConst {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- value: self.value.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AssocType {
- fn clone(&self) -> Self {
- crate::AssocType {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::AttrStyle {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AttrStyle {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Attribute {
- fn clone(&self) -> Self {
- crate::Attribute {
- pound_token: self.pound_token.clone(),
- style: self.style.clone(),
- bracket_token: self.bracket_token.clone(),
- meta: self.meta.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BareFnArg {
- fn clone(&self) -> Self {
- crate::BareFnArg {
- attrs: self.attrs.clone(),
- name: self.name.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BareVariadic {
- fn clone(&self) -> Self {
- crate::BareVariadic {
- attrs: self.attrs.clone(),
- name: self.name.clone(),
- dots: self.dots.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::BinOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BinOp {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Block {
- fn clone(&self) -> Self {
- crate::Block {
- brace_token: self.brace_token.clone(),
- stmts: self.stmts.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BoundLifetimes {
- fn clone(&self) -> Self {
- crate::BoundLifetimes {
- for_token: self.for_token.clone(),
- lt_token: self.lt_token.clone(),
- lifetimes: self.lifetimes.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::CapturedParam {
- fn clone(&self) -> Self {
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- crate::CapturedParam::Lifetime(v0.clone())
- }
- crate::CapturedParam::Ident(v0) => crate::CapturedParam::Ident(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ConstParam {
- fn clone(&self) -> Self {
- crate::ConstParam {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- default: self.default.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Constraint {
- fn clone(&self) -> Self {
- crate::Constraint {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Data {
- fn clone(&self) -> Self {
- match self {
- crate::Data::Struct(v0) => crate::Data::Struct(v0.clone()),
- crate::Data::Enum(v0) => crate::Data::Enum(v0.clone()),
- crate::Data::Union(v0) => crate::Data::Union(v0.clone()),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataEnum {
- fn clone(&self) -> Self {
- crate::DataEnum {
- enum_token: self.enum_token.clone(),
- brace_token: self.brace_token.clone(),
- variants: self.variants.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataStruct {
- fn clone(&self) -> Self {
- crate::DataStruct {
- struct_token: self.struct_token.clone(),
- fields: self.fields.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataUnion {
- fn clone(&self) -> Self {
- crate::DataUnion {
- union_token: self.union_token.clone(),
- fields: self.fields.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DeriveInput {
- fn clone(&self) -> Self {
- crate::DeriveInput {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- data: self.data.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Expr {
- fn clone(&self) -> Self {
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => crate::Expr::Array(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => crate::Expr::Assign(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => crate::Expr::Async(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => crate::Expr::Await(v0.clone()),
- crate::Expr::Binary(v0) => crate::Expr::Binary(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => crate::Expr::Block(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => crate::Expr::Break(v0.clone()),
- crate::Expr::Call(v0) => crate::Expr::Call(v0.clone()),
- crate::Expr::Cast(v0) => crate::Expr::Cast(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => crate::Expr::Closure(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => crate::Expr::Const(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => crate::Expr::Continue(v0.clone()),
- crate::Expr::Field(v0) => crate::Expr::Field(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => crate::Expr::ForLoop(v0.clone()),
- crate::Expr::Group(v0) => crate::Expr::Group(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => crate::Expr::If(v0.clone()),
- crate::Expr::Index(v0) => crate::Expr::Index(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => crate::Expr::Infer(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => crate::Expr::Let(v0.clone()),
- crate::Expr::Lit(v0) => crate::Expr::Lit(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => crate::Expr::Loop(v0.clone()),
- crate::Expr::Macro(v0) => crate::Expr::Macro(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => crate::Expr::Match(v0.clone()),
- crate::Expr::MethodCall(v0) => crate::Expr::MethodCall(v0.clone()),
- crate::Expr::Paren(v0) => crate::Expr::Paren(v0.clone()),
- crate::Expr::Path(v0) => crate::Expr::Path(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => crate::Expr::Range(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => crate::Expr::RawAddr(v0.clone()),
- crate::Expr::Reference(v0) => crate::Expr::Reference(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => crate::Expr::Repeat(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => crate::Expr::Return(v0.clone()),
- crate::Expr::Struct(v0) => crate::Expr::Struct(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => crate::Expr::Try(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => crate::Expr::TryBlock(v0.clone()),
- crate::Expr::Tuple(v0) => crate::Expr::Tuple(v0.clone()),
- crate::Expr::Unary(v0) => crate::Expr::Unary(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => crate::Expr::Unsafe(v0.clone()),
- crate::Expr::Verbatim(v0) => crate::Expr::Verbatim(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => crate::Expr::While(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => crate::Expr::Yield(v0.clone()),
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprArray {
- fn clone(&self) -> Self {
- crate::ExprArray {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAssign {
- fn clone(&self) -> Self {
- crate::ExprAssign {
- attrs: self.attrs.clone(),
- left: self.left.clone(),
- eq_token: self.eq_token.clone(),
- right: self.right.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAsync {
- fn clone(&self) -> Self {
- crate::ExprAsync {
- attrs: self.attrs.clone(),
- async_token: self.async_token.clone(),
- capture: self.capture.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAwait {
- fn clone(&self) -> Self {
- crate::ExprAwait {
- attrs: self.attrs.clone(),
- base: self.base.clone(),
- dot_token: self.dot_token.clone(),
- await_token: self.await_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBinary {
- fn clone(&self) -> Self {
- crate::ExprBinary {
- attrs: self.attrs.clone(),
- left: self.left.clone(),
- op: self.op.clone(),
- right: self.right.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBlock {
- fn clone(&self) -> Self {
- crate::ExprBlock {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBreak {
- fn clone(&self) -> Self {
- crate::ExprBreak {
- attrs: self.attrs.clone(),
- break_token: self.break_token.clone(),
- label: self.label.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprCall {
- fn clone(&self) -> Self {
- crate::ExprCall {
- attrs: self.attrs.clone(),
- func: self.func.clone(),
- paren_token: self.paren_token.clone(),
- args: self.args.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprCast {
- fn clone(&self) -> Self {
- crate::ExprCast {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- as_token: self.as_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprClosure {
- fn clone(&self) -> Self {
- crate::ExprClosure {
- attrs: self.attrs.clone(),
- lifetimes: self.lifetimes.clone(),
- constness: self.constness.clone(),
- movability: self.movability.clone(),
- asyncness: self.asyncness.clone(),
- capture: self.capture.clone(),
- or1_token: self.or1_token.clone(),
- inputs: self.inputs.clone(),
- or2_token: self.or2_token.clone(),
- output: self.output.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprConst {
- fn clone(&self) -> Self {
- crate::ExprConst {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprContinue {
- fn clone(&self) -> Self {
- crate::ExprContinue {
- attrs: self.attrs.clone(),
- continue_token: self.continue_token.clone(),
- label: self.label.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprField {
- fn clone(&self) -> Self {
- crate::ExprField {
- attrs: self.attrs.clone(),
- base: self.base.clone(),
- dot_token: self.dot_token.clone(),
- member: self.member.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprForLoop {
- fn clone(&self) -> Self {
- crate::ExprForLoop {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- for_token: self.for_token.clone(),
- pat: self.pat.clone(),
- in_token: self.in_token.clone(),
- expr: self.expr.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprGroup {
- fn clone(&self) -> Self {
- crate::ExprGroup {
- attrs: self.attrs.clone(),
- group_token: self.group_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprIf {
- fn clone(&self) -> Self {
- crate::ExprIf {
- attrs: self.attrs.clone(),
- if_token: self.if_token.clone(),
- cond: self.cond.clone(),
- then_branch: self.then_branch.clone(),
- else_branch: self.else_branch.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprIndex {
- fn clone(&self) -> Self {
- crate::ExprIndex {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- bracket_token: self.bracket_token.clone(),
- index: self.index.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprInfer {
- fn clone(&self) -> Self {
- crate::ExprInfer {
- attrs: self.attrs.clone(),
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLet {
- fn clone(&self) -> Self {
- crate::ExprLet {
- attrs: self.attrs.clone(),
- let_token: self.let_token.clone(),
- pat: self.pat.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLit {
- fn clone(&self) -> Self {
- crate::ExprLit {
- attrs: self.attrs.clone(),
- lit: self.lit.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLoop {
- fn clone(&self) -> Self {
- crate::ExprLoop {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- loop_token: self.loop_token.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMacro {
- fn clone(&self) -> Self {
- crate::ExprMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMatch {
- fn clone(&self) -> Self {
- crate::ExprMatch {
- attrs: self.attrs.clone(),
- match_token: self.match_token.clone(),
- expr: self.expr.clone(),
- brace_token: self.brace_token.clone(),
- arms: self.arms.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMethodCall {
- fn clone(&self) -> Self {
- crate::ExprMethodCall {
- attrs: self.attrs.clone(),
- receiver: self.receiver.clone(),
- dot_token: self.dot_token.clone(),
- method: self.method.clone(),
- turbofish: self.turbofish.clone(),
- paren_token: self.paren_token.clone(),
- args: self.args.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprParen {
- fn clone(&self) -> Self {
- crate::ExprParen {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprPath {
- fn clone(&self) -> Self {
- crate::ExprPath {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRange {
- fn clone(&self) -> Self {
- crate::ExprRange {
- attrs: self.attrs.clone(),
- start: self.start.clone(),
- limits: self.limits.clone(),
- end: self.end.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRawAddr {
- fn clone(&self) -> Self {
- crate::ExprRawAddr {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- raw: self.raw.clone(),
- mutability: self.mutability.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprReference {
- fn clone(&self) -> Self {
- crate::ExprReference {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- mutability: self.mutability.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRepeat {
- fn clone(&self) -> Self {
- crate::ExprRepeat {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- len: self.len.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprReturn {
- fn clone(&self) -> Self {
- crate::ExprReturn {
- attrs: self.attrs.clone(),
- return_token: self.return_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprStruct {
- fn clone(&self) -> Self {
- crate::ExprStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- brace_token: self.brace_token.clone(),
- fields: self.fields.clone(),
- dot2_token: self.dot2_token.clone(),
- rest: self.rest.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTry {
- fn clone(&self) -> Self {
- crate::ExprTry {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- question_token: self.question_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTryBlock {
- fn clone(&self) -> Self {
- crate::ExprTryBlock {
- attrs: self.attrs.clone(),
- try_token: self.try_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTuple {
- fn clone(&self) -> Self {
- crate::ExprTuple {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprUnary {
- fn clone(&self) -> Self {
- crate::ExprUnary {
- attrs: self.attrs.clone(),
- op: self.op.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprUnsafe {
- fn clone(&self) -> Self {
- crate::ExprUnsafe {
- attrs: self.attrs.clone(),
- unsafe_token: self.unsafe_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprWhile {
- fn clone(&self) -> Self {
- crate::ExprWhile {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- while_token: self.while_token.clone(),
- cond: self.cond.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprYield {
- fn clone(&self) -> Self {
- crate::ExprYield {
- attrs: self.attrs.clone(),
- yield_token: self.yield_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Field {
- fn clone(&self) -> Self {
- crate::Field {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldMutability {
- fn clone(&self) -> Self {
- match self {
- crate::FieldMutability::None => crate::FieldMutability::None,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldPat {
- fn clone(&self) -> Self {
- crate::FieldPat {
- attrs: self.attrs.clone(),
- member: self.member.clone(),
- colon_token: self.colon_token.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldValue {
- fn clone(&self) -> Self {
- crate::FieldValue {
- attrs: self.attrs.clone(),
- member: self.member.clone(),
- colon_token: self.colon_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Fields {
- fn clone(&self) -> Self {
- match self {
- crate::Fields::Named(v0) => crate::Fields::Named(v0.clone()),
- crate::Fields::Unnamed(v0) => crate::Fields::Unnamed(v0.clone()),
- crate::Fields::Unit => crate::Fields::Unit,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldsNamed {
- fn clone(&self) -> Self {
- crate::FieldsNamed {
- brace_token: self.brace_token.clone(),
- named: self.named.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldsUnnamed {
- fn clone(&self) -> Self {
- crate::FieldsUnnamed {
- paren_token: self.paren_token.clone(),
- unnamed: self.unnamed.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::File {
- fn clone(&self) -> Self {
- crate::File {
- shebang: self.shebang.clone(),
- attrs: self.attrs.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FnArg {
- fn clone(&self) -> Self {
- match self {
- crate::FnArg::Receiver(v0) => crate::FnArg::Receiver(v0.clone()),
- crate::FnArg::Typed(v0) => crate::FnArg::Typed(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItem {
- fn clone(&self) -> Self {
- match self {
- crate::ForeignItem::Fn(v0) => crate::ForeignItem::Fn(v0.clone()),
- crate::ForeignItem::Static(v0) => crate::ForeignItem::Static(v0.clone()),
- crate::ForeignItem::Type(v0) => crate::ForeignItem::Type(v0.clone()),
- crate::ForeignItem::Macro(v0) => crate::ForeignItem::Macro(v0.clone()),
- crate::ForeignItem::Verbatim(v0) => crate::ForeignItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemFn {
- fn clone(&self) -> Self {
- crate::ForeignItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- sig: self.sig.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemMacro {
- fn clone(&self) -> Self {
- crate::ForeignItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemStatic {
- fn clone(&self) -> Self {
- crate::ForeignItemStatic {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- static_token: self.static_token.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemType {
- fn clone(&self) -> Self {
- crate::ForeignItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::GenericArgument {
- fn clone(&self) -> Self {
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- crate::GenericArgument::Lifetime(v0.clone())
- }
- crate::GenericArgument::Type(v0) => crate::GenericArgument::Type(v0.clone()),
- crate::GenericArgument::Const(v0) => {
- crate::GenericArgument::Const(v0.clone())
- }
- crate::GenericArgument::AssocType(v0) => {
- crate::GenericArgument::AssocType(v0.clone())
- }
- crate::GenericArgument::AssocConst(v0) => {
- crate::GenericArgument::AssocConst(v0.clone())
- }
- crate::GenericArgument::Constraint(v0) => {
- crate::GenericArgument::Constraint(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::GenericParam {
- fn clone(&self) -> Self {
- match self {
- crate::GenericParam::Lifetime(v0) => {
- crate::GenericParam::Lifetime(v0.clone())
- }
- crate::GenericParam::Type(v0) => crate::GenericParam::Type(v0.clone()),
- crate::GenericParam::Const(v0) => crate::GenericParam::Const(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Generics {
- fn clone(&self) -> Self {
- crate::Generics {
- lt_token: self.lt_token.clone(),
- params: self.params.clone(),
- gt_token: self.gt_token.clone(),
- where_clause: self.where_clause.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItem {
- fn clone(&self) -> Self {
- match self {
- crate::ImplItem::Const(v0) => crate::ImplItem::Const(v0.clone()),
- crate::ImplItem::Fn(v0) => crate::ImplItem::Fn(v0.clone()),
- crate::ImplItem::Type(v0) => crate::ImplItem::Type(v0.clone()),
- crate::ImplItem::Macro(v0) => crate::ImplItem::Macro(v0.clone()),
- crate::ImplItem::Verbatim(v0) => crate::ImplItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemConst {
- fn clone(&self) -> Self {
- crate::ImplItemConst {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemFn {
- fn clone(&self) -> Self {
- crate::ImplItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- sig: self.sig.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemMacro {
- fn clone(&self) -> Self {
- crate::ImplItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemType {
- fn clone(&self) -> Self {
- crate::ImplItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplRestriction {
- fn clone(&self) -> Self {
- match *self {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Index {
- fn clone(&self) -> Self {
- crate::Index {
- index: self.index.clone(),
- span: self.span.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Item {
- fn clone(&self) -> Self {
- match self {
- crate::Item::Const(v0) => crate::Item::Const(v0.clone()),
- crate::Item::Enum(v0) => crate::Item::Enum(v0.clone()),
- crate::Item::ExternCrate(v0) => crate::Item::ExternCrate(v0.clone()),
- crate::Item::Fn(v0) => crate::Item::Fn(v0.clone()),
- crate::Item::ForeignMod(v0) => crate::Item::ForeignMod(v0.clone()),
- crate::Item::Impl(v0) => crate::Item::Impl(v0.clone()),
- crate::Item::Macro(v0) => crate::Item::Macro(v0.clone()),
- crate::Item::Mod(v0) => crate::Item::Mod(v0.clone()),
- crate::Item::Static(v0) => crate::Item::Static(v0.clone()),
- crate::Item::Struct(v0) => crate::Item::Struct(v0.clone()),
- crate::Item::Trait(v0) => crate::Item::Trait(v0.clone()),
- crate::Item::TraitAlias(v0) => crate::Item::TraitAlias(v0.clone()),
- crate::Item::Type(v0) => crate::Item::Type(v0.clone()),
- crate::Item::Union(v0) => crate::Item::Union(v0.clone()),
- crate::Item::Use(v0) => crate::Item::Use(v0.clone()),
- crate::Item::Verbatim(v0) => crate::Item::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemConst {
- fn clone(&self) -> Self {
- crate::ItemConst {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemEnum {
- fn clone(&self) -> Self {
- crate::ItemEnum {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- enum_token: self.enum_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- brace_token: self.brace_token.clone(),
- variants: self.variants.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemExternCrate {
- fn clone(&self) -> Self {
- crate::ItemExternCrate {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- extern_token: self.extern_token.clone(),
- crate_token: self.crate_token.clone(),
- ident: self.ident.clone(),
- rename: self.rename.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemFn {
- fn clone(&self) -> Self {
- crate::ItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- sig: self.sig.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemForeignMod {
- fn clone(&self) -> Self {
- crate::ItemForeignMod {
- attrs: self.attrs.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemImpl {
- fn clone(&self) -> Self {
- crate::ItemImpl {
- attrs: self.attrs.clone(),
- defaultness: self.defaultness.clone(),
- unsafety: self.unsafety.clone(),
- impl_token: self.impl_token.clone(),
- generics: self.generics.clone(),
- trait_: self.trait_.clone(),
- self_ty: self.self_ty.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemMacro {
- fn clone(&self) -> Self {
- crate::ItemMacro {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemMod {
- fn clone(&self) -> Self {
- crate::ItemMod {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- unsafety: self.unsafety.clone(),
- mod_token: self.mod_token.clone(),
- ident: self.ident.clone(),
- content: self.content.clone(),
- semi: self.semi.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemStatic {
- fn clone(&self) -> Self {
- crate::ItemStatic {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- static_token: self.static_token.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemStruct {
- fn clone(&self) -> Self {
- crate::ItemStruct {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- struct_token: self.struct_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- fields: self.fields.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemTrait {
- fn clone(&self) -> Self {
- crate::ItemTrait {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- unsafety: self.unsafety.clone(),
- auto_token: self.auto_token.clone(),
- restriction: self.restriction.clone(),
- trait_token: self.trait_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- supertraits: self.supertraits.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemTraitAlias {
- fn clone(&self) -> Self {
- crate::ItemTraitAlias {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- trait_token: self.trait_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- bounds: self.bounds.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemType {
- fn clone(&self) -> Self {
- crate::ItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemUnion {
- fn clone(&self) -> Self {
- crate::ItemUnion {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- union_token: self.union_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- fields: self.fields.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemUse {
- fn clone(&self) -> Self {
- crate::ItemUse {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- use_token: self.use_token.clone(),
- leading_colon: self.leading_colon.clone(),
- tree: self.tree.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Label {
- fn clone(&self) -> Self {
- crate::Label {
- name: self.name.clone(),
- colon_token: self.colon_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LifetimeParam {
- fn clone(&self) -> Self {
- crate::LifetimeParam {
- attrs: self.attrs.clone(),
- lifetime: self.lifetime.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Lit {
- fn clone(&self) -> Self {
- match self {
- crate::Lit::Str(v0) => crate::Lit::Str(v0.clone()),
- crate::Lit::ByteStr(v0) => crate::Lit::ByteStr(v0.clone()),
- crate::Lit::CStr(v0) => crate::Lit::CStr(v0.clone()),
- crate::Lit::Byte(v0) => crate::Lit::Byte(v0.clone()),
- crate::Lit::Char(v0) => crate::Lit::Char(v0.clone()),
- crate::Lit::Int(v0) => crate::Lit::Int(v0.clone()),
- crate::Lit::Float(v0) => crate::Lit::Float(v0.clone()),
- crate::Lit::Bool(v0) => crate::Lit::Bool(v0.clone()),
- crate::Lit::Verbatim(v0) => crate::Lit::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LitBool {
- fn clone(&self) -> Self {
- crate::LitBool {
- value: self.value.clone(),
- span: self.span.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Local {
- fn clone(&self) -> Self {
- crate::Local {
- attrs: self.attrs.clone(),
- let_token: self.let_token.clone(),
- pat: self.pat.clone(),
- init: self.init.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LocalInit {
- fn clone(&self) -> Self {
- crate::LocalInit {
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- diverge: self.diverge.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Macro {
- fn clone(&self) -> Self {
- crate::Macro {
- path: self.path.clone(),
- bang_token: self.bang_token.clone(),
- delimiter: self.delimiter.clone(),
- tokens: self.tokens.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MacroDelimiter {
- fn clone(&self) -> Self {
- match self {
- crate::MacroDelimiter::Paren(v0) => crate::MacroDelimiter::Paren(v0.clone()),
- crate::MacroDelimiter::Brace(v0) => crate::MacroDelimiter::Brace(v0.clone()),
- crate::MacroDelimiter::Bracket(v0) => {
- crate::MacroDelimiter::Bracket(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Member {
- fn clone(&self) -> Self {
- match self {
- crate::Member::Named(v0) => crate::Member::Named(v0.clone()),
- crate::Member::Unnamed(v0) => crate::Member::Unnamed(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Meta {
- fn clone(&self) -> Self {
- match self {
- crate::Meta::Path(v0) => crate::Meta::Path(v0.clone()),
- crate::Meta::List(v0) => crate::Meta::List(v0.clone()),
- crate::Meta::NameValue(v0) => crate::Meta::NameValue(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MetaList {
- fn clone(&self) -> Self {
- crate::MetaList {
- path: self.path.clone(),
- delimiter: self.delimiter.clone(),
- tokens: self.tokens.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MetaNameValue {
- fn clone(&self) -> Self {
- crate::MetaNameValue {
- path: self.path.clone(),
- eq_token: self.eq_token.clone(),
- value: self.value.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ParenthesizedGenericArguments {
- fn clone(&self) -> Self {
- crate::ParenthesizedGenericArguments {
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Pat {
- fn clone(&self) -> Self {
- match self {
- crate::Pat::Const(v0) => crate::Pat::Const(v0.clone()),
- crate::Pat::Ident(v0) => crate::Pat::Ident(v0.clone()),
- crate::Pat::Lit(v0) => crate::Pat::Lit(v0.clone()),
- crate::Pat::Macro(v0) => crate::Pat::Macro(v0.clone()),
- crate::Pat::Or(v0) => crate::Pat::Or(v0.clone()),
- crate::Pat::Paren(v0) => crate::Pat::Paren(v0.clone()),
- crate::Pat::Path(v0) => crate::Pat::Path(v0.clone()),
- crate::Pat::Range(v0) => crate::Pat::Range(v0.clone()),
- crate::Pat::Reference(v0) => crate::Pat::Reference(v0.clone()),
- crate::Pat::Rest(v0) => crate::Pat::Rest(v0.clone()),
- crate::Pat::Slice(v0) => crate::Pat::Slice(v0.clone()),
- crate::Pat::Struct(v0) => crate::Pat::Struct(v0.clone()),
- crate::Pat::Tuple(v0) => crate::Pat::Tuple(v0.clone()),
- crate::Pat::TupleStruct(v0) => crate::Pat::TupleStruct(v0.clone()),
- crate::Pat::Type(v0) => crate::Pat::Type(v0.clone()),
- crate::Pat::Verbatim(v0) => crate::Pat::Verbatim(v0.clone()),
- crate::Pat::Wild(v0) => crate::Pat::Wild(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatIdent {
- fn clone(&self) -> Self {
- crate::PatIdent {
- attrs: self.attrs.clone(),
- by_ref: self.by_ref.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- subpat: self.subpat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatOr {
- fn clone(&self) -> Self {
- crate::PatOr {
- attrs: self.attrs.clone(),
- leading_vert: self.leading_vert.clone(),
- cases: self.cases.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatParen {
- fn clone(&self) -> Self {
- crate::PatParen {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatReference {
- fn clone(&self) -> Self {
- crate::PatReference {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- mutability: self.mutability.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatRest {
- fn clone(&self) -> Self {
- crate::PatRest {
- attrs: self.attrs.clone(),
- dot2_token: self.dot2_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatSlice {
- fn clone(&self) -> Self {
- crate::PatSlice {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatStruct {
- fn clone(&self) -> Self {
- crate::PatStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- brace_token: self.brace_token.clone(),
- fields: self.fields.clone(),
- rest: self.rest.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatTuple {
- fn clone(&self) -> Self {
- crate::PatTuple {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatTupleStruct {
- fn clone(&self) -> Self {
- crate::PatTupleStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatType {
- fn clone(&self) -> Self {
- crate::PatType {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatWild {
- fn clone(&self) -> Self {
- crate::PatWild {
- attrs: self.attrs.clone(),
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Path {
- fn clone(&self) -> Self {
- crate::Path {
- leading_colon: self.leading_colon.clone(),
- segments: self.segments.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PathArguments {
- fn clone(&self) -> Self {
- match self {
- crate::PathArguments::None => crate::PathArguments::None,
- crate::PathArguments::AngleBracketed(v0) => {
- crate::PathArguments::AngleBracketed(v0.clone())
- }
- crate::PathArguments::Parenthesized(v0) => {
- crate::PathArguments::Parenthesized(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PathSegment {
- fn clone(&self) -> Self {
- crate::PathSegment {
- ident: self.ident.clone(),
- arguments: self.arguments.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PointerMutability {
- fn clone(&self) -> Self {
- match self {
- crate::PointerMutability::Const(v0) => {
- crate::PointerMutability::Const(v0.clone())
- }
- crate::PointerMutability::Mut(v0) => {
- crate::PointerMutability::Mut(v0.clone())
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PreciseCapture {
- fn clone(&self) -> Self {
- crate::PreciseCapture {
- use_token: self.use_token.clone(),
- lt_token: self.lt_token.clone(),
- params: self.params.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PredicateLifetime {
- fn clone(&self) -> Self {
- crate::PredicateLifetime {
- lifetime: self.lifetime.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PredicateType {
- fn clone(&self) -> Self {
- crate::PredicateType {
- lifetimes: self.lifetimes.clone(),
- bounded_ty: self.bounded_ty.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::QSelf {
- fn clone(&self) -> Self {
- crate::QSelf {
- lt_token: self.lt_token.clone(),
- ty: self.ty.clone(),
- position: self.position.clone(),
- as_token: self.as_token.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::RangeLimits {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::RangeLimits {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Receiver {
- fn clone(&self) -> Self {
- crate::Receiver {
- attrs: self.attrs.clone(),
- reference: self.reference.clone(),
- mutability: self.mutability.clone(),
- self_token: self.self_token.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ReturnType {
- fn clone(&self) -> Self {
- match self {
- crate::ReturnType::Default => crate::ReturnType::Default,
- crate::ReturnType::Type(v0, v1) => {
- crate::ReturnType::Type(v0.clone(), v1.clone())
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Signature {
- fn clone(&self) -> Self {
- crate::Signature {
- constness: self.constness.clone(),
- asyncness: self.asyncness.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- fn_token: self.fn_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- variadic: self.variadic.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::StaticMutability {
- fn clone(&self) -> Self {
- match self {
- crate::StaticMutability::Mut(v0) => crate::StaticMutability::Mut(v0.clone()),
- crate::StaticMutability::None => crate::StaticMutability::None,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Stmt {
- fn clone(&self) -> Self {
- match self {
- crate::Stmt::Local(v0) => crate::Stmt::Local(v0.clone()),
- crate::Stmt::Item(v0) => crate::Stmt::Item(v0.clone()),
- crate::Stmt::Expr(v0, v1) => crate::Stmt::Expr(v0.clone(), v1.clone()),
- crate::Stmt::Macro(v0) => crate::Stmt::Macro(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::StmtMacro {
- fn clone(&self) -> Self {
- crate::StmtMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitBound {
- fn clone(&self) -> Self {
- crate::TraitBound {
- paren_token: self.paren_token.clone(),
- modifier: self.modifier.clone(),
- lifetimes: self.lifetimes.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::TraitBoundModifier {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitBoundModifier {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItem {
- fn clone(&self) -> Self {
- match self {
- crate::TraitItem::Const(v0) => crate::TraitItem::Const(v0.clone()),
- crate::TraitItem::Fn(v0) => crate::TraitItem::Fn(v0.clone()),
- crate::TraitItem::Type(v0) => crate::TraitItem::Type(v0.clone()),
- crate::TraitItem::Macro(v0) => crate::TraitItem::Macro(v0.clone()),
- crate::TraitItem::Verbatim(v0) => crate::TraitItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemConst {
- fn clone(&self) -> Self {
- crate::TraitItemConst {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemFn {
- fn clone(&self) -> Self {
- crate::TraitItemFn {
- attrs: self.attrs.clone(),
- sig: self.sig.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemMacro {
- fn clone(&self) -> Self {
- crate::TraitItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemType {
- fn clone(&self) -> Self {
- crate::TraitItemType {
- attrs: self.attrs.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Type {
- fn clone(&self) -> Self {
- match self {
- crate::Type::Array(v0) => crate::Type::Array(v0.clone()),
- crate::Type::BareFn(v0) => crate::Type::BareFn(v0.clone()),
- crate::Type::Group(v0) => crate::Type::Group(v0.clone()),
- crate::Type::ImplTrait(v0) => crate::Type::ImplTrait(v0.clone()),
- crate::Type::Infer(v0) => crate::Type::Infer(v0.clone()),
- crate::Type::Macro(v0) => crate::Type::Macro(v0.clone()),
- crate::Type::Never(v0) => crate::Type::Never(v0.clone()),
- crate::Type::Paren(v0) => crate::Type::Paren(v0.clone()),
- crate::Type::Path(v0) => crate::Type::Path(v0.clone()),
- crate::Type::Ptr(v0) => crate::Type::Ptr(v0.clone()),
- crate::Type::Reference(v0) => crate::Type::Reference(v0.clone()),
- crate::Type::Slice(v0) => crate::Type::Slice(v0.clone()),
- crate::Type::TraitObject(v0) => crate::Type::TraitObject(v0.clone()),
- crate::Type::Tuple(v0) => crate::Type::Tuple(v0.clone()),
- crate::Type::Verbatim(v0) => crate::Type::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeArray {
- fn clone(&self) -> Self {
- crate::TypeArray {
- bracket_token: self.bracket_token.clone(),
- elem: self.elem.clone(),
- semi_token: self.semi_token.clone(),
- len: self.len.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeBareFn {
- fn clone(&self) -> Self {
- crate::TypeBareFn {
- lifetimes: self.lifetimes.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- fn_token: self.fn_token.clone(),
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- variadic: self.variadic.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeGroup {
- fn clone(&self) -> Self {
- crate::TypeGroup {
- group_token: self.group_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeImplTrait {
- fn clone(&self) -> Self {
- crate::TypeImplTrait {
- impl_token: self.impl_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeInfer {
- fn clone(&self) -> Self {
- crate::TypeInfer {
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeMacro {
- fn clone(&self) -> Self {
- crate::TypeMacro {
- mac: self.mac.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeNever {
- fn clone(&self) -> Self {
- crate::TypeNever {
- bang_token: self.bang_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParam {
- fn clone(&self) -> Self {
- crate::TypeParam {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- eq_token: self.eq_token.clone(),
- default: self.default.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParamBound {
- fn clone(&self) -> Self {
- match self {
- crate::TypeParamBound::Trait(v0) => crate::TypeParamBound::Trait(v0.clone()),
- crate::TypeParamBound::Lifetime(v0) => {
- crate::TypeParamBound::Lifetime(v0.clone())
- }
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- crate::TypeParamBound::PreciseCapture(v0.clone())
- }
- crate::TypeParamBound::Verbatim(v0) => {
- crate::TypeParamBound::Verbatim(v0.clone())
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParen {
- fn clone(&self) -> Self {
- crate::TypeParen {
- paren_token: self.paren_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypePath {
- fn clone(&self) -> Self {
- crate::TypePath {
- qself: self.qself.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypePtr {
- fn clone(&self) -> Self {
- crate::TypePtr {
- star_token: self.star_token.clone(),
- const_token: self.const_token.clone(),
- mutability: self.mutability.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeReference {
- fn clone(&self) -> Self {
- crate::TypeReference {
- and_token: self.and_token.clone(),
- lifetime: self.lifetime.clone(),
- mutability: self.mutability.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeSlice {
- fn clone(&self) -> Self {
- crate::TypeSlice {
- bracket_token: self.bracket_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeTraitObject {
- fn clone(&self) -> Self {
- crate::TypeTraitObject {
- dyn_token: self.dyn_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeTuple {
- fn clone(&self) -> Self {
- crate::TypeTuple {
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::UnOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UnOp {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseGlob {
- fn clone(&self) -> Self {
- crate::UseGlob {
- star_token: self.star_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseGroup {
- fn clone(&self) -> Self {
- crate::UseGroup {
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseName {
- fn clone(&self) -> Self {
- crate::UseName {
- ident: self.ident.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UsePath {
- fn clone(&self) -> Self {
- crate::UsePath {
- ident: self.ident.clone(),
- colon2_token: self.colon2_token.clone(),
- tree: self.tree.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseRename {
- fn clone(&self) -> Self {
- crate::UseRename {
- ident: self.ident.clone(),
- as_token: self.as_token.clone(),
- rename: self.rename.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseTree {
- fn clone(&self) -> Self {
- match self {
- crate::UseTree::Path(v0) => crate::UseTree::Path(v0.clone()),
- crate::UseTree::Name(v0) => crate::UseTree::Name(v0.clone()),
- crate::UseTree::Rename(v0) => crate::UseTree::Rename(v0.clone()),
- crate::UseTree::Glob(v0) => crate::UseTree::Glob(v0.clone()),
- crate::UseTree::Group(v0) => crate::UseTree::Group(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Variadic {
- fn clone(&self) -> Self {
- crate::Variadic {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- dots: self.dots.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Variant {
- fn clone(&self) -> Self {
- crate::Variant {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- fields: self.fields.clone(),
- discriminant: self.discriminant.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::VisRestricted {
- fn clone(&self) -> Self {
- crate::VisRestricted {
- pub_token: self.pub_token.clone(),
- paren_token: self.paren_token.clone(),
- in_token: self.in_token.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Visibility {
- fn clone(&self) -> Self {
- match self {
- crate::Visibility::Public(v0) => crate::Visibility::Public(v0.clone()),
- crate::Visibility::Restricted(v0) => {
- crate::Visibility::Restricted(v0.clone())
- }
- crate::Visibility::Inherited => crate::Visibility::Inherited,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::WhereClause {
- fn clone(&self) -> Self {
- crate::WhereClause {
- where_token: self.where_token.clone(),
- predicates: self.predicates.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::WherePredicate {
- fn clone(&self) -> Self {
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- crate::WherePredicate::Lifetime(v0.clone())
- }
- crate::WherePredicate::Type(v0) => crate::WherePredicate::Type(v0.clone()),
- }
- }
-}
diff --git a/vendor/syn/src/gen/debug.rs b/vendor/syn/src/gen/debug.rs
deleted file mode 100644
index aa42e32c..00000000
--- a/vendor/syn/src/gen/debug.rs
+++ /dev/null
@@ -1,3238 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unknown_lints, non_local_definitions)]
-use std::fmt::{self, Debug};
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Abi {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Abi");
- formatter.field("extern_token", &self.extern_token);
- formatter.field("name", &self.name);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AngleBracketedGenericArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "AngleBracketedGenericArguments")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::AngleBracketedGenericArguments {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("colon2_token", &self.colon2_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("args", &self.args);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Arm {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Arm");
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("guard", &self.guard);
- formatter.field("fat_arrow_token", &self.fat_arrow_token);
- formatter.field("body", &self.body);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AssocConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocConst");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("value", &self.value);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AssocType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocType");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AttrStyle {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("AttrStyle::")?;
- match self {
- crate::AttrStyle::Outer => formatter.write_str("Outer"),
- crate::AttrStyle::Inner(v0) => {
- let mut formatter = formatter.debug_tuple("Inner");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Attribute {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Attribute");
- formatter.field("pound_token", &self.pound_token);
- formatter.field("style", &self.style);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("meta", &self.meta);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BareFnArg {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareFnArg");
- formatter.field("attrs", &self.attrs);
- formatter.field("name", &self.name);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BareVariadic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareVariadic");
- formatter.field("attrs", &self.attrs);
- formatter.field("name", &self.name);
- formatter.field("dots", &self.dots);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BinOp {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("BinOp::")?;
- match self {
- crate::BinOp::Add(v0) => {
- let mut formatter = formatter.debug_tuple("Add");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Sub(v0) => {
- let mut formatter = formatter.debug_tuple("Sub");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Mul(v0) => {
- let mut formatter = formatter.debug_tuple("Mul");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Div(v0) => {
- let mut formatter = formatter.debug_tuple("Div");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Rem(v0) => {
- let mut formatter = formatter.debug_tuple("Rem");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::And(v0) => {
- let mut formatter = formatter.debug_tuple("And");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Or(v0) => {
- let mut formatter = formatter.debug_tuple("Or");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitXor(v0) => {
- let mut formatter = formatter.debug_tuple("BitXor");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitAnd(v0) => {
- let mut formatter = formatter.debug_tuple("BitAnd");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitOr(v0) => {
- let mut formatter = formatter.debug_tuple("BitOr");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Shl(v0) => {
- let mut formatter = formatter.debug_tuple("Shl");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Shr(v0) => {
- let mut formatter = formatter.debug_tuple("Shr");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Eq(v0) => {
- let mut formatter = formatter.debug_tuple("Eq");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Lt(v0) => {
- let mut formatter = formatter.debug_tuple("Lt");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Le(v0) => {
- let mut formatter = formatter.debug_tuple("Le");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Ne(v0) => {
- let mut formatter = formatter.debug_tuple("Ne");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Ge(v0) => {
- let mut formatter = formatter.debug_tuple("Ge");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Gt(v0) => {
- let mut formatter = formatter.debug_tuple("Gt");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::AddAssign(v0) => {
- let mut formatter = formatter.debug_tuple("AddAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::SubAssign(v0) => {
- let mut formatter = formatter.debug_tuple("SubAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::MulAssign(v0) => {
- let mut formatter = formatter.debug_tuple("MulAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::DivAssign(v0) => {
- let mut formatter = formatter.debug_tuple("DivAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::RemAssign(v0) => {
- let mut formatter = formatter.debug_tuple("RemAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitXorAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitXorAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitAndAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitAndAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitOrAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitOrAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::ShlAssign(v0) => {
- let mut formatter = formatter.debug_tuple("ShlAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::ShrAssign(v0) => {
- let mut formatter = formatter.debug_tuple("ShrAssign");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Block {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Block");
- formatter.field("brace_token", &self.brace_token);
- formatter.field("stmts", &self.stmts);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BoundLifetimes {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BoundLifetimes");
- formatter.field("for_token", &self.for_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::CapturedParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("CapturedParam::")?;
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::CapturedParam::Ident(v0) => {
- let mut formatter = formatter.debug_tuple("Ident");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ConstParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ConstParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("default", &self.default);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Constraint {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Constraint");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Data {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Data::")?;
- match self {
- crate::Data::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Data::Enum(v0) => v0.debug(formatter, "Enum"),
- crate::Data::Union(v0) => v0.debug(formatter, "Union"),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataEnum {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataEnum")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataEnum {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("enum_token", &self.enum_token);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("variants", &self.variants);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataStruct")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("struct_token", &self.struct_token);
- formatter.field("fields", &self.fields);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataUnion {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataUnion")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataUnion {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("union_token", &self.union_token);
- formatter.field("fields", &self.fields);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DeriveInput {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DeriveInput");
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("data", &self.data);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Expr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Expr::")?;
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => v0.debug(formatter, "Array"),
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => v0.debug(formatter, "Assign"),
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => v0.debug(formatter, "Async"),
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => v0.debug(formatter, "Await"),
- crate::Expr::Binary(v0) => v0.debug(formatter, "Binary"),
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => v0.debug(formatter, "Block"),
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => v0.debug(formatter, "Break"),
- crate::Expr::Call(v0) => v0.debug(formatter, "Call"),
- crate::Expr::Cast(v0) => v0.debug(formatter, "Cast"),
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => v0.debug(formatter, "Closure"),
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => v0.debug(formatter, "Const"),
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => v0.debug(formatter, "Continue"),
- crate::Expr::Field(v0) => v0.debug(formatter, "Field"),
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => v0.debug(formatter, "ForLoop"),
- crate::Expr::Group(v0) => v0.debug(formatter, "Group"),
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => v0.debug(formatter, "If"),
- crate::Expr::Index(v0) => v0.debug(formatter, "Index"),
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => v0.debug(formatter, "Infer"),
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => v0.debug(formatter, "Let"),
- crate::Expr::Lit(v0) => v0.debug(formatter, "Lit"),
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => v0.debug(formatter, "Loop"),
- crate::Expr::Macro(v0) => v0.debug(formatter, "Macro"),
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => v0.debug(formatter, "Match"),
- crate::Expr::MethodCall(v0) => v0.debug(formatter, "MethodCall"),
- crate::Expr::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Expr::Path(v0) => v0.debug(formatter, "Path"),
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => v0.debug(formatter, "Range"),
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => v0.debug(formatter, "RawAddr"),
- crate::Expr::Reference(v0) => v0.debug(formatter, "Reference"),
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => v0.debug(formatter, "Repeat"),
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => v0.debug(formatter, "Return"),
- crate::Expr::Struct(v0) => v0.debug(formatter, "Struct"),
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => v0.debug(formatter, "Try"),
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => v0.debug(formatter, "TryBlock"),
- crate::Expr::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Expr::Unary(v0) => v0.debug(formatter, "Unary"),
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => v0.debug(formatter, "Unsafe"),
- crate::Expr::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => v0.debug(formatter, "While"),
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => v0.debug(formatter, "Yield"),
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprArray {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprArray")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprArray {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAssign {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAssign")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAssign {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("left", &self.left);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("right", &self.right);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAsync {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAsync")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAsync {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("async_token", &self.async_token);
- formatter.field("capture", &self.capture);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAwait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAwait")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAwait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("base", &self.base);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("await_token", &self.await_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBinary {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBinary")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprBinary {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("left", &self.left);
- formatter.field("op", &self.op);
- formatter.field("right", &self.right);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBlock {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBlock")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprBlock {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBreak {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBreak")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprBreak {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("break_token", &self.break_token);
- formatter.field("label", &self.label);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprCall {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprCall")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprCall {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("func", &self.func);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("args", &self.args);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprCast {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprCast")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprCast {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("as_token", &self.as_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprClosure {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprClosure")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprClosure {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("constness", &self.constness);
- formatter.field("movability", &self.movability);
- formatter.field("asyncness", &self.asyncness);
- formatter.field("capture", &self.capture);
- formatter.field("or1_token", &self.or1_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("or2_token", &self.or2_token);
- formatter.field("output", &self.output);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprContinue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprContinue")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprContinue {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("continue_token", &self.continue_token);
- formatter.field("label", &self.label);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprField {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprField")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprField {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("base", &self.base);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("member", &self.member);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprForLoop {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprForLoop")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprForLoop {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("for_token", &self.for_token);
- formatter.field("pat", &self.pat);
- formatter.field("in_token", &self.in_token);
- formatter.field("expr", &self.expr);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprGroup")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprGroup {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("group_token", &self.group_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprIf {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprIf")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprIf {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("if_token", &self.if_token);
- formatter.field("cond", &self.cond);
- formatter.field("then_branch", &self.then_branch);
- formatter.field("else_branch", &self.else_branch);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprIndex {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprIndex")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprIndex {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("index", &self.index);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprInfer {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprInfer")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprInfer {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLet {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLet")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprLet {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("let_token", &self.let_token);
- formatter.field("pat", &self.pat);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLit")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprLit {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("lit", &self.lit);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLoop {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLoop")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprLoop {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("loop_token", &self.loop_token);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMacro")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMatch {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMatch")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprMatch {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("match_token", &self.match_token);
- formatter.field("expr", &self.expr);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("arms", &self.arms);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMethodCall {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMethodCall")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprMethodCall {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("receiver", &self.receiver);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("method", &self.method);
- formatter.field("turbofish", &self.turbofish);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("args", &self.args);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprParen")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprPath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprPath")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprPath {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRange {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRange")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRange {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("start", &self.start);
- formatter.field("limits", &self.limits);
- formatter.field("end", &self.end);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRawAddr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRawAddr")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRawAddr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("raw", &self.raw);
- formatter.field("mutability", &self.mutability);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprReference")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRepeat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRepeat")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRepeat {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.field("len", &self.len);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprReturn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprReturn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprReturn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("return_token", &self.return_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprStruct")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("fields", &self.fields);
- formatter.field("dot2_token", &self.dot2_token);
- formatter.field("rest", &self.rest);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTry {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTry")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprTry {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("question_token", &self.question_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTryBlock {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTryBlock")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprTryBlock {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("try_token", &self.try_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTuple")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprUnary {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprUnary")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprUnary {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("op", &self.op);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprUnsafe {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprUnsafe")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprUnsafe {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("unsafe_token", &self.unsafe_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprWhile {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprWhile")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprWhile {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("while_token", &self.while_token);
- formatter.field("cond", &self.cond);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprYield {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprYield")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprYield {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("yield_token", &self.yield_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Field {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Field");
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("FieldMutability::")?;
- match self {
- crate::FieldMutability::None => formatter.write_str("None"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldPat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldPat");
- formatter.field("attrs", &self.attrs);
- formatter.field("member", &self.member);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldValue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldValue");
- formatter.field("attrs", &self.attrs);
- formatter.field("member", &self.member);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Fields {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Fields::")?;
- match self {
- crate::Fields::Named(v0) => v0.debug(formatter, "Named"),
- crate::Fields::Unnamed(v0) => v0.debug(formatter, "Unnamed"),
- crate::Fields::Unit => formatter.write_str("Unit"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldsNamed {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "FieldsNamed")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::FieldsNamed {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("named", &self.named);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldsUnnamed {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "FieldsUnnamed")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::FieldsUnnamed {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("unnamed", &self.unnamed);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::File {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("File");
- formatter.field("shebang", &self.shebang);
- formatter.field("attrs", &self.attrs);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FnArg {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("FnArg::")?;
- match self {
- crate::FnArg::Receiver(v0) => {
- let mut formatter = formatter.debug_tuple("Receiver");
- formatter.field(v0);
- formatter.finish()
- }
- crate::FnArg::Typed(v0) => {
- let mut formatter = formatter.debug_tuple("Typed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ForeignItem::")?;
- match self {
- crate::ForeignItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::ForeignItem::Static(v0) => v0.debug(formatter, "Static"),
- crate::ForeignItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::ForeignItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::ForeignItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("sig", &self.sig);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemStatic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemStatic")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemStatic {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("static_token", &self.static_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::GenericArgument {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("GenericArgument::")?;
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::AssocType(v0) => {
- let mut formatter = formatter.debug_tuple("AssocType");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::AssocConst(v0) => {
- let mut formatter = formatter.debug_tuple("AssocConst");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Constraint(v0) => {
- let mut formatter = formatter.debug_tuple("Constraint");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::GenericParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("GenericParam::")?;
- match self {
- crate::GenericParam::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericParam::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericParam::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Generics {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Generics");
- formatter.field("lt_token", &self.lt_token);
- formatter.field("params", &self.params);
- formatter.field("gt_token", &self.gt_token);
- formatter.field("where_clause", &self.where_clause);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ImplItem::")?;
- match self {
- crate::ImplItem::Const(v0) => v0.debug(formatter, "Const"),
- crate::ImplItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::ImplItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::ImplItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::ImplItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("sig", &self.sig);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplRestriction {
- fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
- match *self {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Index {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Index");
- formatter.field("index", &self.index);
- formatter.field("span", &self.span);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Item {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Item::")?;
- match self {
- crate::Item::Const(v0) => v0.debug(formatter, "Const"),
- crate::Item::Enum(v0) => v0.debug(formatter, "Enum"),
- crate::Item::ExternCrate(v0) => v0.debug(formatter, "ExternCrate"),
- crate::Item::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::Item::ForeignMod(v0) => v0.debug(formatter, "ForeignMod"),
- crate::Item::Impl(v0) => v0.debug(formatter, "Impl"),
- crate::Item::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Item::Mod(v0) => v0.debug(formatter, "Mod"),
- crate::Item::Static(v0) => v0.debug(formatter, "Static"),
- crate::Item::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Item::Trait(v0) => v0.debug(formatter, "Trait"),
- crate::Item::TraitAlias(v0) => v0.debug(formatter, "TraitAlias"),
- crate::Item::Type(v0) => v0.debug(formatter, "Type"),
- crate::Item::Union(v0) => v0.debug(formatter, "Union"),
- crate::Item::Use(v0) => v0.debug(formatter, "Use"),
- crate::Item::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemEnum {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemEnum")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemEnum {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("enum_token", &self.enum_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("variants", &self.variants);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemExternCrate {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemExternCrate")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemExternCrate {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("extern_token", &self.extern_token);
- formatter.field("crate_token", &self.crate_token);
- formatter.field("ident", &self.ident);
- formatter.field("rename", &self.rename);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("sig", &self.sig);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemForeignMod {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemForeignMod")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemForeignMod {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemImpl {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemImpl")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemImpl {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("impl_token", &self.impl_token);
- formatter.field("generics", &self.generics);
- formatter.field("trait_", &self.trait_);
- formatter.field("self_ty", &self.self_ty);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemMod {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemMod")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemMod {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("mod_token", &self.mod_token);
- formatter.field("ident", &self.ident);
- formatter.field("content", &self.content);
- formatter.field("semi", &self.semi);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemStatic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemStatic")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemStatic {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("static_token", &self.static_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("struct_token", &self.struct_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("fields", &self.fields);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemTrait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemTrait")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemTrait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("auto_token", &self.auto_token);
- formatter.field("restriction", &self.restriction);
- formatter.field("trait_token", &self.trait_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("supertraits", &self.supertraits);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemTraitAlias {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemTraitAlias")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemTraitAlias {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("trait_token", &self.trait_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemUnion {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemUnion")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemUnion {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("union_token", &self.union_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("fields", &self.fields);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemUse {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemUse")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemUse {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("use_token", &self.use_token);
- formatter.field("leading_colon", &self.leading_colon);
- formatter.field("tree", &self.tree);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Label {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Label");
- formatter.field("name", &self.name);
- formatter.field("colon_token", &self.colon_token);
- formatter.finish()
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Lifetime {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Lifetime")
- }
-}
-impl crate::Lifetime {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("apostrophe", &self.apostrophe);
- formatter.field("ident", &self.ident);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::LifetimeParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LifetimeParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("lifetime", &self.lifetime);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Lit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Lit::")?;
- match self {
- crate::Lit::Str(v0) => v0.debug(formatter, "Str"),
- crate::Lit::ByteStr(v0) => v0.debug(formatter, "ByteStr"),
- crate::Lit::CStr(v0) => v0.debug(formatter, "CStr"),
- crate::Lit::Byte(v0) => v0.debug(formatter, "Byte"),
- crate::Lit::Char(v0) => v0.debug(formatter, "Char"),
- crate::Lit::Int(v0) => v0.debug(formatter, "Int"),
- crate::Lit::Float(v0) => v0.debug(formatter, "Float"),
- crate::Lit::Bool(v0) => v0.debug(formatter, "Bool"),
- crate::Lit::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Local {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Local")
- }
-}
-#[cfg(feature = "full")]
-impl crate::Local {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("let_token", &self.let_token);
- formatter.field("pat", &self.pat);
- formatter.field("init", &self.init);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::LocalInit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LocalInit");
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("diverge", &self.diverge);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Macro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Macro");
- formatter.field("path", &self.path);
- formatter.field("bang_token", &self.bang_token);
- formatter.field("delimiter", &self.delimiter);
- formatter.field("tokens", &self.tokens);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MacroDelimiter {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("MacroDelimiter::")?;
- match self {
- crate::MacroDelimiter::Paren(v0) => {
- let mut formatter = formatter.debug_tuple("Paren");
- formatter.field(v0);
- formatter.finish()
- }
- crate::MacroDelimiter::Brace(v0) => {
- let mut formatter = formatter.debug_tuple("Brace");
- formatter.field(v0);
- formatter.finish()
- }
- crate::MacroDelimiter::Bracket(v0) => {
- let mut formatter = formatter.debug_tuple("Bracket");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Member {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Member::")?;
- match self {
- crate::Member::Named(v0) => {
- let mut formatter = formatter.debug_tuple("Named");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Member::Unnamed(v0) => {
- let mut formatter = formatter.debug_tuple("Unnamed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Meta {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Meta::")?;
- match self {
- crate::Meta::Path(v0) => v0.debug(formatter, "Path"),
- crate::Meta::List(v0) => v0.debug(formatter, "List"),
- crate::Meta::NameValue(v0) => v0.debug(formatter, "NameValue"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MetaList {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "MetaList")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::MetaList {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("path", &self.path);
- formatter.field("delimiter", &self.delimiter);
- formatter.field("tokens", &self.tokens);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MetaNameValue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "MetaNameValue")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::MetaNameValue {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("path", &self.path);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("value", &self.value);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ParenthesizedGenericArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ParenthesizedGenericArguments")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ParenthesizedGenericArguments {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Pat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Pat::")?;
- match self {
- crate::Pat::Const(v0) => v0.debug(formatter, "Const"),
- crate::Pat::Ident(v0) => v0.debug(formatter, "Ident"),
- crate::Pat::Lit(v0) => v0.debug(formatter, "Lit"),
- crate::Pat::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Pat::Or(v0) => v0.debug(formatter, "Or"),
- crate::Pat::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Pat::Path(v0) => v0.debug(formatter, "Path"),
- crate::Pat::Range(v0) => v0.debug(formatter, "Range"),
- crate::Pat::Reference(v0) => v0.debug(formatter, "Reference"),
- crate::Pat::Rest(v0) => v0.debug(formatter, "Rest"),
- crate::Pat::Slice(v0) => v0.debug(formatter, "Slice"),
- crate::Pat::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Pat::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Pat::TupleStruct(v0) => v0.debug(formatter, "TupleStruct"),
- crate::Pat::Type(v0) => v0.debug(formatter, "Type"),
- crate::Pat::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Pat::Wild(v0) => v0.debug(formatter, "Wild"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatIdent {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatIdent")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatIdent {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("by_ref", &self.by_ref);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("subpat", &self.subpat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatOr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatOr")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatOr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("leading_vert", &self.leading_vert);
- formatter.field("cases", &self.cases);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatParen")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatReference")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatRest {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatRest")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatRest {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("dot2_token", &self.dot2_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatSlice {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatSlice")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatSlice {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("fields", &self.fields);
- formatter.field("rest", &self.rest);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatTuple")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatTupleStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatTupleStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatTupleStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatWild {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatWild")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatWild {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Path {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Path")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::Path {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("leading_colon", &self.leading_colon);
- formatter.field("segments", &self.segments);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PathArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("PathArguments::")?;
- match self {
- crate::PathArguments::None => formatter.write_str("None"),
- crate::PathArguments::AngleBracketed(v0) => {
- v0.debug(formatter, "AngleBracketed")
- }
- crate::PathArguments::Parenthesized(v0) => {
- v0.debug(formatter, "Parenthesized")
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PathSegment {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PathSegment");
- formatter.field("ident", &self.ident);
- formatter.field("arguments", &self.arguments);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PointerMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("PointerMutability::")?;
- match self {
- crate::PointerMutability::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- crate::PointerMutability::Mut(v0) => {
- let mut formatter = formatter.debug_tuple("Mut");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PreciseCapture {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PreciseCapture");
- formatter.field("use_token", &self.use_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("params", &self.params);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PredicateLifetime {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateLifetime");
- formatter.field("lifetime", &self.lifetime);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PredicateType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateType");
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("bounded_ty", &self.bounded_ty);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::QSelf {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("QSelf");
- formatter.field("lt_token", &self.lt_token);
- formatter.field("ty", &self.ty);
- formatter.field("position", &self.position);
- formatter.field("as_token", &self.as_token);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::RangeLimits {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("RangeLimits::")?;
- match self {
- crate::RangeLimits::HalfOpen(v0) => {
- let mut formatter = formatter.debug_tuple("HalfOpen");
- formatter.field(v0);
- formatter.finish()
- }
- crate::RangeLimits::Closed(v0) => {
- let mut formatter = formatter.debug_tuple("Closed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Receiver {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Receiver");
- formatter.field("attrs", &self.attrs);
- formatter.field("reference", &self.reference);
- formatter.field("mutability", &self.mutability);
- formatter.field("self_token", &self.self_token);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ReturnType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ReturnType::")?;
- match self {
- crate::ReturnType::Default => formatter.write_str("Default"),
- crate::ReturnType::Type(v0, v1) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.field(v1);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Signature {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Signature");
- formatter.field("constness", &self.constness);
- formatter.field("asyncness", &self.asyncness);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("fn_token", &self.fn_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("variadic", &self.variadic);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::StaticMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("StaticMutability::")?;
- match self {
- crate::StaticMutability::Mut(v0) => {
- let mut formatter = formatter.debug_tuple("Mut");
- formatter.field(v0);
- formatter.finish()
- }
- crate::StaticMutability::None => formatter.write_str("None"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Stmt {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Stmt::")?;
- match self {
- crate::Stmt::Local(v0) => v0.debug(formatter, "Local"),
- crate::Stmt::Item(v0) => {
- let mut formatter = formatter.debug_tuple("Item");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Stmt::Expr(v0, v1) => {
- let mut formatter = formatter.debug_tuple("Expr");
- formatter.field(v0);
- formatter.field(v1);
- formatter.finish()
- }
- crate::Stmt::Macro(v0) => v0.debug(formatter, "Macro"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::StmtMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "StmtMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::StmtMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitBound {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitBound");
- formatter.field("paren_token", &self.paren_token);
- formatter.field("modifier", &self.modifier);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitBoundModifier {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TraitBoundModifier::")?;
- match self {
- crate::TraitBoundModifier::None => formatter.write_str("None"),
- crate::TraitBoundModifier::Maybe(v0) => {
- let mut formatter = formatter.debug_tuple("Maybe");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TraitItem::")?;
- match self {
- crate::TraitItem::Const(v0) => v0.debug(formatter, "Const"),
- crate::TraitItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::TraitItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::TraitItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::TraitItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("sig", &self.sig);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Type {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Type::")?;
- match self {
- crate::Type::Array(v0) => v0.debug(formatter, "Array"),
- crate::Type::BareFn(v0) => v0.debug(formatter, "BareFn"),
- crate::Type::Group(v0) => v0.debug(formatter, "Group"),
- crate::Type::ImplTrait(v0) => v0.debug(formatter, "ImplTrait"),
- crate::Type::Infer(v0) => v0.debug(formatter, "Infer"),
- crate::Type::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Type::Never(v0) => v0.debug(formatter, "Never"),
- crate::Type::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Type::Path(v0) => v0.debug(formatter, "Path"),
- crate::Type::Ptr(v0) => v0.debug(formatter, "Ptr"),
- crate::Type::Reference(v0) => v0.debug(formatter, "Reference"),
- crate::Type::Slice(v0) => v0.debug(formatter, "Slice"),
- crate::Type::TraitObject(v0) => v0.debug(formatter, "TraitObject"),
- crate::Type::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Type::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeArray {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeArray")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeArray {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elem", &self.elem);
- formatter.field("semi_token", &self.semi_token);
- formatter.field("len", &self.len);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeBareFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeBareFn")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeBareFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("fn_token", &self.fn_token);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("variadic", &self.variadic);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeGroup")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeGroup {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("group_token", &self.group_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeImplTrait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeImplTrait")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeImplTrait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("impl_token", &self.impl_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeInfer {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeInfer")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeInfer {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeMacro")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("mac", &self.mac);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeNever {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeNever")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeNever {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bang_token", &self.bang_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("default", &self.default);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParamBound {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TypeParamBound::")?;
- match self {
- crate::TypeParamBound::Trait(v0) => {
- let mut formatter = formatter.debug_tuple("Trait");
- formatter.field(v0);
- formatter.finish()
- }
- crate::TypeParamBound::Lifetime(v0) => v0.debug(formatter, "Lifetime"),
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- let mut formatter = formatter.debug_tuple("PreciseCapture");
- formatter.field(v0);
- formatter.finish()
- }
- crate::TypeParamBound::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeParen")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypePath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypePath")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypePath {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypePtr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypePtr")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypePtr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("star_token", &self.star_token);
- formatter.field("const_token", &self.const_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeReference")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("and_token", &self.and_token);
- formatter.field("lifetime", &self.lifetime);
- formatter.field("mutability", &self.mutability);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeSlice {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeSlice")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeSlice {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeTraitObject {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeTraitObject")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeTraitObject {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("dyn_token", &self.dyn_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeTuple")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UnOp {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("UnOp::")?;
- match self {
- crate::UnOp::Deref(v0) => {
- let mut formatter = formatter.debug_tuple("Deref");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UnOp::Not(v0) => {
- let mut formatter = formatter.debug_tuple("Not");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UnOp::Neg(v0) => {
- let mut formatter = formatter.debug_tuple("Neg");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseGlob {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGlob");
- formatter.field("star_token", &self.star_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGroup");
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseName {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseName");
- formatter.field("ident", &self.ident);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UsePath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UsePath");
- formatter.field("ident", &self.ident);
- formatter.field("colon2_token", &self.colon2_token);
- formatter.field("tree", &self.tree);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseRename {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseRename");
- formatter.field("ident", &self.ident);
- formatter.field("as_token", &self.as_token);
- formatter.field("rename", &self.rename);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseTree {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("UseTree::")?;
- match self {
- crate::UseTree::Path(v0) => {
- let mut formatter = formatter.debug_tuple("Path");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Name(v0) => {
- let mut formatter = formatter.debug_tuple("Name");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Rename(v0) => {
- let mut formatter = formatter.debug_tuple("Rename");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Glob(v0) => {
- let mut formatter = formatter.debug_tuple("Glob");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Group(v0) => {
- let mut formatter = formatter.debug_tuple("Group");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Variadic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variadic");
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("dots", &self.dots);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Variant {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variant");
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("fields", &self.fields);
- formatter.field("discriminant", &self.discriminant);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::VisRestricted {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "VisRestricted")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::VisRestricted {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("pub_token", &self.pub_token);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("in_token", &self.in_token);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Visibility {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Visibility::")?;
- match self {
- crate::Visibility::Public(v0) => {
- let mut formatter = formatter.debug_tuple("Public");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Visibility::Restricted(v0) => v0.debug(formatter, "Restricted"),
- crate::Visibility::Inherited => formatter.write_str("Inherited"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::WhereClause {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("WhereClause");
- formatter.field("where_token", &self.where_token);
- formatter.field("predicates", &self.predicates);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::WherePredicate {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("WherePredicate::")?;
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::WherePredicate::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
diff --git a/vendor/syn/src/gen/eq.rs b/vendor/syn/src/gen/eq.rs
deleted file mode 100644
index 128e8991..00000000
--- a/vendor/syn/src/gen/eq.rs
+++ /dev/null
@@ -1,2306 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#[cfg(any(feature = "derive", feature = "full"))]
-use crate::tt::TokenStreamHelper;
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Abi {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Abi {
- fn eq(&self, other: &Self) -> bool {
- self.name == other.name
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AngleBracketedGenericArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AngleBracketedGenericArguments {
- fn eq(&self, other: &Self) -> bool {
- self.colon2_token == other.colon2_token && self.args == other.args
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Arm {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Arm {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.guard == other.guard
- && self.body == other.body && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AssocConst {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AssocConst {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.value == other.value
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AssocType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AssocType {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AttrStyle {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AttrStyle {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::AttrStyle::Outer, crate::AttrStyle::Outer) => true,
- (crate::AttrStyle::Inner(_), crate::AttrStyle::Inner(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Attribute {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Attribute {
- fn eq(&self, other: &Self) -> bool {
- self.style == other.style && self.meta == other.meta
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BareFnArg {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BareFnArg {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.name == other.name && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BareVariadic {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BareVariadic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.name == other.name && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BinOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BinOp {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::BinOp::Add(_), crate::BinOp::Add(_)) => true,
- (crate::BinOp::Sub(_), crate::BinOp::Sub(_)) => true,
- (crate::BinOp::Mul(_), crate::BinOp::Mul(_)) => true,
- (crate::BinOp::Div(_), crate::BinOp::Div(_)) => true,
- (crate::BinOp::Rem(_), crate::BinOp::Rem(_)) => true,
- (crate::BinOp::And(_), crate::BinOp::And(_)) => true,
- (crate::BinOp::Or(_), crate::BinOp::Or(_)) => true,
- (crate::BinOp::BitXor(_), crate::BinOp::BitXor(_)) => true,
- (crate::BinOp::BitAnd(_), crate::BinOp::BitAnd(_)) => true,
- (crate::BinOp::BitOr(_), crate::BinOp::BitOr(_)) => true,
- (crate::BinOp::Shl(_), crate::BinOp::Shl(_)) => true,
- (crate::BinOp::Shr(_), crate::BinOp::Shr(_)) => true,
- (crate::BinOp::Eq(_), crate::BinOp::Eq(_)) => true,
- (crate::BinOp::Lt(_), crate::BinOp::Lt(_)) => true,
- (crate::BinOp::Le(_), crate::BinOp::Le(_)) => true,
- (crate::BinOp::Ne(_), crate::BinOp::Ne(_)) => true,
- (crate::BinOp::Ge(_), crate::BinOp::Ge(_)) => true,
- (crate::BinOp::Gt(_), crate::BinOp::Gt(_)) => true,
- (crate::BinOp::AddAssign(_), crate::BinOp::AddAssign(_)) => true,
- (crate::BinOp::SubAssign(_), crate::BinOp::SubAssign(_)) => true,
- (crate::BinOp::MulAssign(_), crate::BinOp::MulAssign(_)) => true,
- (crate::BinOp::DivAssign(_), crate::BinOp::DivAssign(_)) => true,
- (crate::BinOp::RemAssign(_), crate::BinOp::RemAssign(_)) => true,
- (crate::BinOp::BitXorAssign(_), crate::BinOp::BitXorAssign(_)) => true,
- (crate::BinOp::BitAndAssign(_), crate::BinOp::BitAndAssign(_)) => true,
- (crate::BinOp::BitOrAssign(_), crate::BinOp::BitOrAssign(_)) => true,
- (crate::BinOp::ShlAssign(_), crate::BinOp::ShlAssign(_)) => true,
- (crate::BinOp::ShrAssign(_), crate::BinOp::ShrAssign(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Block {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Block {
- fn eq(&self, other: &Self) -> bool {
- self.stmts == other.stmts
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BoundLifetimes {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BoundLifetimes {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::CapturedParam {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::CapturedParam {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::CapturedParam::Lifetime(self0),
- crate::CapturedParam::Lifetime(other0),
- ) => self0 == other0,
- (crate::CapturedParam::Ident(self0), crate::CapturedParam::Ident(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ConstParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ConstParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident && self.ty == other.ty
- && self.eq_token == other.eq_token && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Constraint {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Constraint {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.bounds == other.bounds
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Data {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Data {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Data::Struct(self0), crate::Data::Struct(other0)) => self0 == other0,
- (crate::Data::Enum(self0), crate::Data::Enum(other0)) => self0 == other0,
- (crate::Data::Union(self0), crate::Data::Union(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataEnum {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataEnum {
- fn eq(&self, other: &Self) -> bool {
- self.variants == other.variants
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataStruct {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataStruct {
- fn eq(&self, other: &Self) -> bool {
- self.fields == other.fields && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataUnion {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataUnion {
- fn eq(&self, other: &Self) -> bool {
- self.fields == other.fields
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DeriveInput {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DeriveInput {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.data == other.data
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Expr {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Expr {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- #[cfg(feature = "full")]
- (crate::Expr::Array(self0), crate::Expr::Array(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Assign(self0), crate::Expr::Assign(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Async(self0), crate::Expr::Async(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Await(self0), crate::Expr::Await(other0)) => self0 == other0,
- (crate::Expr::Binary(self0), crate::Expr::Binary(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Block(self0), crate::Expr::Block(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Break(self0), crate::Expr::Break(other0)) => self0 == other0,
- (crate::Expr::Call(self0), crate::Expr::Call(other0)) => self0 == other0,
- (crate::Expr::Cast(self0), crate::Expr::Cast(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Closure(self0), crate::Expr::Closure(other0)) => {
- self0 == other0
- }
- #[cfg(feature = "full")]
- (crate::Expr::Const(self0), crate::Expr::Const(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Continue(self0), crate::Expr::Continue(other0)) => {
- self0 == other0
- }
- (crate::Expr::Field(self0), crate::Expr::Field(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::ForLoop(self0), crate::Expr::ForLoop(other0)) => {
- self0 == other0
- }
- (crate::Expr::Group(self0), crate::Expr::Group(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::If(self0), crate::Expr::If(other0)) => self0 == other0,
- (crate::Expr::Index(self0), crate::Expr::Index(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Infer(self0), crate::Expr::Infer(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Let(self0), crate::Expr::Let(other0)) => self0 == other0,
- (crate::Expr::Lit(self0), crate::Expr::Lit(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Loop(self0), crate::Expr::Loop(other0)) => self0 == other0,
- (crate::Expr::Macro(self0), crate::Expr::Macro(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Match(self0), crate::Expr::Match(other0)) => self0 == other0,
- (crate::Expr::MethodCall(self0), crate::Expr::MethodCall(other0)) => {
- self0 == other0
- }
- (crate::Expr::Paren(self0), crate::Expr::Paren(other0)) => self0 == other0,
- (crate::Expr::Path(self0), crate::Expr::Path(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Range(self0), crate::Expr::Range(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::RawAddr(self0), crate::Expr::RawAddr(other0)) => {
- self0 == other0
- }
- (crate::Expr::Reference(self0), crate::Expr::Reference(other0)) => {
- self0 == other0
- }
- #[cfg(feature = "full")]
- (crate::Expr::Repeat(self0), crate::Expr::Repeat(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Return(self0), crate::Expr::Return(other0)) => self0 == other0,
- (crate::Expr::Struct(self0), crate::Expr::Struct(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Try(self0), crate::Expr::Try(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::TryBlock(self0), crate::Expr::TryBlock(other0)) => {
- self0 == other0
- }
- (crate::Expr::Tuple(self0), crate::Expr::Tuple(other0)) => self0 == other0,
- (crate::Expr::Unary(self0), crate::Expr::Unary(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Unsafe(self0), crate::Expr::Unsafe(other0)) => self0 == other0,
- (crate::Expr::Verbatim(self0), crate::Expr::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- #[cfg(feature = "full")]
- (crate::Expr::While(self0), crate::Expr::While(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Yield(self0), crate::Expr::Yield(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprArray {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprArray {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAssign {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAssign {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.left == other.left && self.right == other.right
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAsync {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAsync {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.capture == other.capture
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAwait {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAwait {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.base == other.base
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBinary {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBinary {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.left == other.left && self.op == other.op
- && self.right == other.right
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBlock {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBlock {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBreak {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBreak {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprCall {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprCall {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.func == other.func && self.args == other.args
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprCast {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprCast {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprClosure {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprClosure {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lifetimes == other.lifetimes
- && self.constness == other.constness && self.movability == other.movability
- && self.asyncness == other.asyncness && self.capture == other.capture
- && self.inputs == other.inputs && self.output == other.output
- && self.body == other.body
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprContinue {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprContinue {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprField {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprField {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.base == other.base
- && self.member == other.member
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprForLoop {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprForLoop {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.pat == other.pat
- && self.expr == other.expr && self.body == other.body
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprGroup {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprGroup {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprIf {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprIf {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.cond == other.cond
- && self.then_branch == other.then_branch
- && self.else_branch == other.else_branch
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprIndex {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprIndex {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.index == other.index
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprInfer {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprInfer {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLet {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLet {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLit {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLit {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lit == other.lit
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLoop {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLoop {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.body == other.body
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMacro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMatch {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMatch {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.arms == other.arms
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMethodCall {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMethodCall {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.receiver == other.receiver
- && self.method == other.method && self.turbofish == other.turbofish
- && self.args == other.args
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprParen {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprParen {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprPath {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprPath {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRange {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRange {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.start == other.start
- && self.limits == other.limits && self.end == other.end
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRawAddr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRawAddr {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprReference {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprReference {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRepeat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRepeat {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.len == other.len
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprReturn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprReturn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprStruct {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.fields == other.fields && self.dot2_token == other.dot2_token
- && self.rest == other.rest
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTry {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTry {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTryBlock {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTryBlock {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTuple {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTuple {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprUnary {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprUnary {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.op == other.op && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprUnsafe {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprUnsafe {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprWhile {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprWhile {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.cond == other.cond
- && self.body == other.body
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprYield {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprYield {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Field {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Field {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.colon_token == other.colon_token && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldMutability {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::FieldMutability::None, crate::FieldMutability::None) => true,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldPat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldPat {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.member == other.member
- && self.colon_token == other.colon_token && self.pat == other.pat
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldValue {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldValue {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.member == other.member
- && self.colon_token == other.colon_token && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Fields {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Fields {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Fields::Named(self0), crate::Fields::Named(other0)) => {
- self0 == other0
- }
- (crate::Fields::Unnamed(self0), crate::Fields::Unnamed(other0)) => {
- self0 == other0
- }
- (crate::Fields::Unit, crate::Fields::Unit) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldsNamed {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldsNamed {
- fn eq(&self, other: &Self) -> bool {
- self.named == other.named
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldsUnnamed {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldsUnnamed {
- fn eq(&self, other: &Self) -> bool {
- self.unnamed == other.unnamed
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::File {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::File {
- fn eq(&self, other: &Self) -> bool {
- self.shebang == other.shebang && self.attrs == other.attrs
- && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FnArg {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FnArg {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::FnArg::Receiver(self0), crate::FnArg::Receiver(other0)) => {
- self0 == other0
- }
- (crate::FnArg::Typed(self0), crate::FnArg::Typed(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ForeignItem::Fn(self0), crate::ForeignItem::Fn(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Static(self0), crate::ForeignItem::Static(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Type(self0), crate::ForeignItem::Type(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Macro(self0), crate::ForeignItem::Macro(other0)) => {
- self0 == other0
- }
- (
- crate::ForeignItem::Verbatim(self0),
- crate::ForeignItem::Verbatim(other0),
- ) => TokenStreamHelper(self0) == TokenStreamHelper(other0),
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemStatic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemStatic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::GenericArgument {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::GenericArgument {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::GenericArgument::Lifetime(self0),
- crate::GenericArgument::Lifetime(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Type(self0),
- crate::GenericArgument::Type(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Const(self0),
- crate::GenericArgument::Const(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::AssocType(self0),
- crate::GenericArgument::AssocType(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::AssocConst(self0),
- crate::GenericArgument::AssocConst(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Constraint(self0),
- crate::GenericArgument::Constraint(other0),
- ) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::GenericParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::GenericParam {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::GenericParam::Lifetime(self0),
- crate::GenericParam::Lifetime(other0),
- ) => self0 == other0,
- (crate::GenericParam::Type(self0), crate::GenericParam::Type(other0)) => {
- self0 == other0
- }
- (crate::GenericParam::Const(self0), crate::GenericParam::Const(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Generics {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Generics {
- fn eq(&self, other: &Self) -> bool {
- self.lt_token == other.lt_token && self.params == other.params
- && self.gt_token == other.gt_token && self.where_clause == other.where_clause
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ImplItem::Const(self0), crate::ImplItem::Const(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Fn(self0), crate::ImplItem::Fn(other0)) => self0 == other0,
- (crate::ImplItem::Type(self0), crate::ImplItem::Type(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Macro(self0), crate::ImplItem::Macro(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Verbatim(self0), crate::ImplItem::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.sig == other.sig
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplRestriction {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplRestriction {
- fn eq(&self, _other: &Self) -> bool {
- match *self {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Item {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Item {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Item::Const(self0), crate::Item::Const(other0)) => self0 == other0,
- (crate::Item::Enum(self0), crate::Item::Enum(other0)) => self0 == other0,
- (crate::Item::ExternCrate(self0), crate::Item::ExternCrate(other0)) => {
- self0 == other0
- }
- (crate::Item::Fn(self0), crate::Item::Fn(other0)) => self0 == other0,
- (crate::Item::ForeignMod(self0), crate::Item::ForeignMod(other0)) => {
- self0 == other0
- }
- (crate::Item::Impl(self0), crate::Item::Impl(other0)) => self0 == other0,
- (crate::Item::Macro(self0), crate::Item::Macro(other0)) => self0 == other0,
- (crate::Item::Mod(self0), crate::Item::Mod(other0)) => self0 == other0,
- (crate::Item::Static(self0), crate::Item::Static(other0)) => self0 == other0,
- (crate::Item::Struct(self0), crate::Item::Struct(other0)) => self0 == other0,
- (crate::Item::Trait(self0), crate::Item::Trait(other0)) => self0 == other0,
- (crate::Item::TraitAlias(self0), crate::Item::TraitAlias(other0)) => {
- self0 == other0
- }
- (crate::Item::Type(self0), crate::Item::Type(other0)) => self0 == other0,
- (crate::Item::Union(self0), crate::Item::Union(other0)) => self0 == other0,
- (crate::Item::Use(self0), crate::Item::Use(other0)) => self0 == other0,
- (crate::Item::Verbatim(self0), crate::Item::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemEnum {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemEnum {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.variants == other.variants
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemExternCrate {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemExternCrate {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.rename == other.rename
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemForeignMod {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemForeignMod {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.unsafety == other.unsafety
- && self.abi == other.abi && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemImpl {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemImpl {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.defaultness == other.defaultness
- && self.unsafety == other.unsafety && self.generics == other.generics
- && self.trait_ == other.trait_ && self.self_ty == other.self_ty
- && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemMod {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemMod {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.unsafety == other.unsafety && self.ident == other.ident
- && self.content == other.content && self.semi == other.semi
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemStatic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemStatic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.ty == other.ty && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.fields == other.fields
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemTrait {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemTrait {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.unsafety == other.unsafety && self.auto_token == other.auto_token
- && self.restriction == other.restriction && self.ident == other.ident
- && self.generics == other.generics && self.colon_token == other.colon_token
- && self.supertraits == other.supertraits && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemTraitAlias {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemTraitAlias {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.bounds == other.bounds
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemUnion {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemUnion {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.fields == other.fields
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemUse {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemUse {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.leading_colon == other.leading_colon && self.tree == other.tree
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Label {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Label {
- fn eq(&self, other: &Self) -> bool {
- self.name == other.name
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LifetimeParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LifetimeParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lifetime == other.lifetime
- && self.colon_token == other.colon_token && self.bounds == other.bounds
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Lit {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Lit {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Lit::Str(self0), crate::Lit::Str(other0)) => self0 == other0,
- (crate::Lit::ByteStr(self0), crate::Lit::ByteStr(other0)) => self0 == other0,
- (crate::Lit::CStr(self0), crate::Lit::CStr(other0)) => self0 == other0,
- (crate::Lit::Byte(self0), crate::Lit::Byte(other0)) => self0 == other0,
- (crate::Lit::Char(self0), crate::Lit::Char(other0)) => self0 == other0,
- (crate::Lit::Int(self0), crate::Lit::Int(other0)) => self0 == other0,
- (crate::Lit::Float(self0), crate::Lit::Float(other0)) => self0 == other0,
- (crate::Lit::Bool(self0), crate::Lit::Bool(other0)) => self0 == other0,
- (crate::Lit::Verbatim(self0), crate::Lit::Verbatim(other0)) => {
- self0.to_string() == other0.to_string()
- }
- _ => false,
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitBool {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LitBool {
- fn eq(&self, other: &Self) -> bool {
- self.value == other.value
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitByte {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitByteStr {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitCStr {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitChar {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitFloat {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitInt {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitStr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Local {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Local {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.init == other.init
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LocalInit {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LocalInit {
- fn eq(&self, other: &Self) -> bool {
- self.expr == other.expr && self.diverge == other.diverge
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Macro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Macro {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.delimiter == other.delimiter
- && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MacroDelimiter {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MacroDelimiter {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::MacroDelimiter::Paren(_), crate::MacroDelimiter::Paren(_)) => true,
- (crate::MacroDelimiter::Brace(_), crate::MacroDelimiter::Brace(_)) => true,
- (crate::MacroDelimiter::Bracket(_), crate::MacroDelimiter::Bracket(_)) => {
- true
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Meta {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Meta {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Meta::Path(self0), crate::Meta::Path(other0)) => self0 == other0,
- (crate::Meta::List(self0), crate::Meta::List(other0)) => self0 == other0,
- (crate::Meta::NameValue(self0), crate::Meta::NameValue(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MetaList {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MetaList {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.delimiter == other.delimiter
- && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MetaNameValue {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MetaNameValue {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.value == other.value
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ParenthesizedGenericArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ParenthesizedGenericArguments {
- fn eq(&self, other: &Self) -> bool {
- self.inputs == other.inputs && self.output == other.output
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Pat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Pat {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Pat::Const(self0), crate::Pat::Const(other0)) => self0 == other0,
- (crate::Pat::Ident(self0), crate::Pat::Ident(other0)) => self0 == other0,
- (crate::Pat::Lit(self0), crate::Pat::Lit(other0)) => self0 == other0,
- (crate::Pat::Macro(self0), crate::Pat::Macro(other0)) => self0 == other0,
- (crate::Pat::Or(self0), crate::Pat::Or(other0)) => self0 == other0,
- (crate::Pat::Paren(self0), crate::Pat::Paren(other0)) => self0 == other0,
- (crate::Pat::Path(self0), crate::Pat::Path(other0)) => self0 == other0,
- (crate::Pat::Range(self0), crate::Pat::Range(other0)) => self0 == other0,
- (crate::Pat::Reference(self0), crate::Pat::Reference(other0)) => {
- self0 == other0
- }
- (crate::Pat::Rest(self0), crate::Pat::Rest(other0)) => self0 == other0,
- (crate::Pat::Slice(self0), crate::Pat::Slice(other0)) => self0 == other0,
- (crate::Pat::Struct(self0), crate::Pat::Struct(other0)) => self0 == other0,
- (crate::Pat::Tuple(self0), crate::Pat::Tuple(other0)) => self0 == other0,
- (crate::Pat::TupleStruct(self0), crate::Pat::TupleStruct(other0)) => {
- self0 == other0
- }
- (crate::Pat::Type(self0), crate::Pat::Type(other0)) => self0 == other0,
- (crate::Pat::Verbatim(self0), crate::Pat::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- (crate::Pat::Wild(self0), crate::Pat::Wild(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatIdent {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatIdent {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.by_ref == other.by_ref
- && self.mutability == other.mutability && self.ident == other.ident
- && self.subpat == other.subpat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatOr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatOr {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.leading_vert == other.leading_vert
- && self.cases == other.cases
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatParen {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatParen {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatReference {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatReference {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.pat == other.pat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatRest {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatRest {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatSlice {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatSlice {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.fields == other.fields && self.rest == other.rest
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatTuple {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatTuple {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatTupleStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatTupleStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatWild {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatWild {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Path {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Path {
- fn eq(&self, other: &Self) -> bool {
- self.leading_colon == other.leading_colon && self.segments == other.segments
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PathArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PathArguments {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::PathArguments::None, crate::PathArguments::None) => true,
- (
- crate::PathArguments::AngleBracketed(self0),
- crate::PathArguments::AngleBracketed(other0),
- ) => self0 == other0,
- (
- crate::PathArguments::Parenthesized(self0),
- crate::PathArguments::Parenthesized(other0),
- ) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PathSegment {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PathSegment {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.arguments == other.arguments
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PointerMutability {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PointerMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::PointerMutability::Const(_), crate::PointerMutability::Const(_)) => {
- true
- }
- (crate::PointerMutability::Mut(_), crate::PointerMutability::Mut(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PreciseCapture {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PreciseCapture {
- fn eq(&self, other: &Self) -> bool {
- self.params == other.params
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PredicateLifetime {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PredicateLifetime {
- fn eq(&self, other: &Self) -> bool {
- self.lifetime == other.lifetime && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PredicateType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PredicateType {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes && self.bounded_ty == other.bounded_ty
- && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::QSelf {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::QSelf {
- fn eq(&self, other: &Self) -> bool {
- self.ty == other.ty && self.position == other.position
- && self.as_token == other.as_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::RangeLimits {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::RangeLimits {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::RangeLimits::HalfOpen(_), crate::RangeLimits::HalfOpen(_)) => true,
- (crate::RangeLimits::Closed(_), crate::RangeLimits::Closed(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Receiver {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Receiver {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.reference == other.reference
- && self.mutability == other.mutability
- && self.colon_token == other.colon_token && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ReturnType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ReturnType {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ReturnType::Default, crate::ReturnType::Default) => true,
- (crate::ReturnType::Type(_, self1), crate::ReturnType::Type(_, other1)) => {
- self1 == other1
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Signature {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Signature {
- fn eq(&self, other: &Self) -> bool {
- self.constness == other.constness && self.asyncness == other.asyncness
- && self.unsafety == other.unsafety && self.abi == other.abi
- && self.ident == other.ident && self.generics == other.generics
- && self.inputs == other.inputs && self.variadic == other.variadic
- && self.output == other.output
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::StaticMutability {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::StaticMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::StaticMutability::Mut(_), crate::StaticMutability::Mut(_)) => true,
- (crate::StaticMutability::None, crate::StaticMutability::None) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Stmt {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Stmt {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Stmt::Local(self0), crate::Stmt::Local(other0)) => self0 == other0,
- (crate::Stmt::Item(self0), crate::Stmt::Item(other0)) => self0 == other0,
- (crate::Stmt::Expr(self0, self1), crate::Stmt::Expr(other0, other1)) => {
- self0 == other0 && self1 == other1
- }
- (crate::Stmt::Macro(self0), crate::Stmt::Macro(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::StmtMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::StmtMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitBound {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitBound {
- fn eq(&self, other: &Self) -> bool {
- self.paren_token == other.paren_token && self.modifier == other.modifier
- && self.lifetimes == other.lifetimes && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitBoundModifier {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitBoundModifier {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::TraitBoundModifier::None, crate::TraitBoundModifier::None) => true,
- (
- crate::TraitBoundModifier::Maybe(_),
- crate::TraitBoundModifier::Maybe(_),
- ) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::TraitItem::Const(self0), crate::TraitItem::Const(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Fn(self0), crate::TraitItem::Fn(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Type(self0), crate::TraitItem::Type(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Macro(self0), crate::TraitItem::Macro(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Verbatim(self0), crate::TraitItem::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.default == other.default
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.sig == other.sig
- && self.default == other.default && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.generics == other.generics && self.colon_token == other.colon_token
- && self.bounds == other.bounds && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Type {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Type {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Type::Array(self0), crate::Type::Array(other0)) => self0 == other0,
- (crate::Type::BareFn(self0), crate::Type::BareFn(other0)) => self0 == other0,
- (crate::Type::Group(self0), crate::Type::Group(other0)) => self0 == other0,
- (crate::Type::ImplTrait(self0), crate::Type::ImplTrait(other0)) => {
- self0 == other0
- }
- (crate::Type::Infer(self0), crate::Type::Infer(other0)) => self0 == other0,
- (crate::Type::Macro(self0), crate::Type::Macro(other0)) => self0 == other0,
- (crate::Type::Never(self0), crate::Type::Never(other0)) => self0 == other0,
- (crate::Type::Paren(self0), crate::Type::Paren(other0)) => self0 == other0,
- (crate::Type::Path(self0), crate::Type::Path(other0)) => self0 == other0,
- (crate::Type::Ptr(self0), crate::Type::Ptr(other0)) => self0 == other0,
- (crate::Type::Reference(self0), crate::Type::Reference(other0)) => {
- self0 == other0
- }
- (crate::Type::Slice(self0), crate::Type::Slice(other0)) => self0 == other0,
- (crate::Type::TraitObject(self0), crate::Type::TraitObject(other0)) => {
- self0 == other0
- }
- (crate::Type::Tuple(self0), crate::Type::Tuple(other0)) => self0 == other0,
- (crate::Type::Verbatim(self0), crate::Type::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeArray {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeArray {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem && self.len == other.len
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeBareFn {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeBareFn {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes && self.unsafety == other.unsafety
- && self.abi == other.abi && self.inputs == other.inputs
- && self.variadic == other.variadic && self.output == other.output
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeGroup {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeGroup {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeImplTrait {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeImplTrait {
- fn eq(&self, other: &Self) -> bool {
- self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeInfer {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeInfer {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeMacro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeMacro {
- fn eq(&self, other: &Self) -> bool {
- self.mac == other.mac
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeNever {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeNever {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.colon_token == other.colon_token && self.bounds == other.bounds
- && self.eq_token == other.eq_token && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParamBound {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParamBound {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::TypeParamBound::Trait(self0),
- crate::TypeParamBound::Trait(other0),
- ) => self0 == other0,
- (
- crate::TypeParamBound::Lifetime(self0),
- crate::TypeParamBound::Lifetime(other0),
- ) => self0 == other0,
- #[cfg(feature = "full")]
- (
- crate::TypeParamBound::PreciseCapture(self0),
- crate::TypeParamBound::PreciseCapture(other0),
- ) => self0 == other0,
- (
- crate::TypeParamBound::Verbatim(self0),
- crate::TypeParamBound::Verbatim(other0),
- ) => TokenStreamHelper(self0) == TokenStreamHelper(other0),
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParen {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParen {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypePath {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypePath {
- fn eq(&self, other: &Self) -> bool {
- self.qself == other.qself && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypePtr {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypePtr {
- fn eq(&self, other: &Self) -> bool {
- self.const_token == other.const_token && self.mutability == other.mutability
- && self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeReference {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeReference {
- fn eq(&self, other: &Self) -> bool {
- self.lifetime == other.lifetime && self.mutability == other.mutability
- && self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeSlice {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeSlice {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeTraitObject {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeTraitObject {
- fn eq(&self, other: &Self) -> bool {
- self.dyn_token == other.dyn_token && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeTuple {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeTuple {
- fn eq(&self, other: &Self) -> bool {
- self.elems == other.elems
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UnOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UnOp {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::UnOp::Deref(_), crate::UnOp::Deref(_)) => true,
- (crate::UnOp::Not(_), crate::UnOp::Not(_)) => true,
- (crate::UnOp::Neg(_), crate::UnOp::Neg(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseGlob {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseGlob {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseGroup {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseGroup {
- fn eq(&self, other: &Self) -> bool {
- self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseName {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseName {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UsePath {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UsePath {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.tree == other.tree
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseRename {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseRename {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.rename == other.rename
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseTree {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseTree {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::UseTree::Path(self0), crate::UseTree::Path(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Name(self0), crate::UseTree::Name(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Rename(self0), crate::UseTree::Rename(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Glob(self0), crate::UseTree::Glob(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Group(self0), crate::UseTree::Group(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Variadic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Variadic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Variant {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Variant {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.fields == other.fields && self.discriminant == other.discriminant
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::VisRestricted {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::VisRestricted {
- fn eq(&self, other: &Self) -> bool {
- self.in_token == other.in_token && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Visibility {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Visibility {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Visibility::Public(_), crate::Visibility::Public(_)) => true,
- (
- crate::Visibility::Restricted(self0),
- crate::Visibility::Restricted(other0),
- ) => self0 == other0,
- (crate::Visibility::Inherited, crate::Visibility::Inherited) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::WhereClause {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::WhereClause {
- fn eq(&self, other: &Self) -> bool {
- self.predicates == other.predicates
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::WherePredicate {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::WherePredicate {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::WherePredicate::Lifetime(self0),
- crate::WherePredicate::Lifetime(other0),
- ) => self0 == other0,
- (crate::WherePredicate::Type(self0), crate::WherePredicate::Type(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
diff --git a/vendor/syn/src/gen/fold.rs b/vendor/syn/src/gen/fold.rs
deleted file mode 100644
index 1f0afd31..00000000
--- a/vendor/syn/src/gen/fold.rs
+++ /dev/null
@@ -1,3902 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unreachable_code, unused_variables)]
-#![allow(
- clippy::match_wildcard_for_single_variants,
- clippy::needless_match,
- clippy::needless_pass_by_ref_mut,
-)]
-#[cfg(feature = "full")]
-macro_rules! full {
- ($e:expr) => {
- $e
- };
-}
-#[cfg(all(feature = "derive", not(feature = "full")))]
-macro_rules! full {
- ($e:expr) => {
- unreachable!()
- };
-}
-/// Syntax tree traversal to transform the nodes of an owned syntax tree.
-///
-/// See the [module documentation] for details.
-///
-/// [module documentation]: self
-pub trait Fold {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_abi(&mut self, i: crate::Abi) -> crate::Abi {
- fold_abi(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_angle_bracketed_generic_arguments(
- &mut self,
- i: crate::AngleBracketedGenericArguments,
- ) -> crate::AngleBracketedGenericArguments {
- fold_angle_bracketed_generic_arguments(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_arm(&mut self, i: crate::Arm) -> crate::Arm {
- fold_arm(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_assoc_const(&mut self, i: crate::AssocConst) -> crate::AssocConst {
- fold_assoc_const(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_assoc_type(&mut self, i: crate::AssocType) -> crate::AssocType {
- fold_assoc_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attr_style(&mut self, i: crate::AttrStyle) -> crate::AttrStyle {
- fold_attr_style(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attribute(&mut self, i: crate::Attribute) -> crate::Attribute {
- fold_attribute(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attributes(&mut self, i: Vec<crate::Attribute>) -> Vec<crate::Attribute> {
- fold_vec(i, self, Self::fold_attribute)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bare_fn_arg(&mut self, i: crate::BareFnArg) -> crate::BareFnArg {
- fold_bare_fn_arg(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bare_variadic(&mut self, i: crate::BareVariadic) -> crate::BareVariadic {
- fold_bare_variadic(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bin_op(&mut self, i: crate::BinOp) -> crate::BinOp {
- fold_bin_op(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_block(&mut self, i: crate::Block) -> crate::Block {
- fold_block(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bound_lifetimes(
- &mut self,
- i: crate::BoundLifetimes,
- ) -> crate::BoundLifetimes {
- fold_bound_lifetimes(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_captured_param(&mut self, i: crate::CapturedParam) -> crate::CapturedParam {
- fold_captured_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_const_param(&mut self, i: crate::ConstParam) -> crate::ConstParam {
- fold_const_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_constraint(&mut self, i: crate::Constraint) -> crate::Constraint {
- fold_constraint(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data(&mut self, i: crate::Data) -> crate::Data {
- fold_data(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_enum(&mut self, i: crate::DataEnum) -> crate::DataEnum {
- fold_data_enum(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_struct(&mut self, i: crate::DataStruct) -> crate::DataStruct {
- fold_data_struct(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_union(&mut self, i: crate::DataUnion) -> crate::DataUnion {
- fold_data_union(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_derive_input(&mut self, i: crate::DeriveInput) -> crate::DeriveInput {
- fold_derive_input(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr(&mut self, i: crate::Expr) -> crate::Expr {
- fold_expr(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_array(&mut self, i: crate::ExprArray) -> crate::ExprArray {
- fold_expr_array(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_assign(&mut self, i: crate::ExprAssign) -> crate::ExprAssign {
- fold_expr_assign(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_async(&mut self, i: crate::ExprAsync) -> crate::ExprAsync {
- fold_expr_async(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_await(&mut self, i: crate::ExprAwait) -> crate::ExprAwait {
- fold_expr_await(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_binary(&mut self, i: crate::ExprBinary) -> crate::ExprBinary {
- fold_expr_binary(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_block(&mut self, i: crate::ExprBlock) -> crate::ExprBlock {
- fold_expr_block(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_break(&mut self, i: crate::ExprBreak) -> crate::ExprBreak {
- fold_expr_break(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_call(&mut self, i: crate::ExprCall) -> crate::ExprCall {
- fold_expr_call(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_cast(&mut self, i: crate::ExprCast) -> crate::ExprCast {
- fold_expr_cast(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_closure(&mut self, i: crate::ExprClosure) -> crate::ExprClosure {
- fold_expr_closure(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_const(&mut self, i: crate::ExprConst) -> crate::ExprConst {
- fold_expr_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_continue(&mut self, i: crate::ExprContinue) -> crate::ExprContinue {
- fold_expr_continue(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_field(&mut self, i: crate::ExprField) -> crate::ExprField {
- fold_expr_field(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_for_loop(&mut self, i: crate::ExprForLoop) -> crate::ExprForLoop {
- fold_expr_for_loop(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_group(&mut self, i: crate::ExprGroup) -> crate::ExprGroup {
- fold_expr_group(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_if(&mut self, i: crate::ExprIf) -> crate::ExprIf {
- fold_expr_if(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_index(&mut self, i: crate::ExprIndex) -> crate::ExprIndex {
- fold_expr_index(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_infer(&mut self, i: crate::ExprInfer) -> crate::ExprInfer {
- fold_expr_infer(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_let(&mut self, i: crate::ExprLet) -> crate::ExprLet {
- fold_expr_let(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_lit(&mut self, i: crate::ExprLit) -> crate::ExprLit {
- fold_expr_lit(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_loop(&mut self, i: crate::ExprLoop) -> crate::ExprLoop {
- fold_expr_loop(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_macro(&mut self, i: crate::ExprMacro) -> crate::ExprMacro {
- fold_expr_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_match(&mut self, i: crate::ExprMatch) -> crate::ExprMatch {
- fold_expr_match(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_method_call(
- &mut self,
- i: crate::ExprMethodCall,
- ) -> crate::ExprMethodCall {
- fold_expr_method_call(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_paren(&mut self, i: crate::ExprParen) -> crate::ExprParen {
- fold_expr_paren(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_path(&mut self, i: crate::ExprPath) -> crate::ExprPath {
- fold_expr_path(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_range(&mut self, i: crate::ExprRange) -> crate::ExprRange {
- fold_expr_range(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_raw_addr(&mut self, i: crate::ExprRawAddr) -> crate::ExprRawAddr {
- fold_expr_raw_addr(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_reference(&mut self, i: crate::ExprReference) -> crate::ExprReference {
- fold_expr_reference(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_repeat(&mut self, i: crate::ExprRepeat) -> crate::ExprRepeat {
- fold_expr_repeat(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_return(&mut self, i: crate::ExprReturn) -> crate::ExprReturn {
- fold_expr_return(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_struct(&mut self, i: crate::ExprStruct) -> crate::ExprStruct {
- fold_expr_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_try(&mut self, i: crate::ExprTry) -> crate::ExprTry {
- fold_expr_try(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_try_block(&mut self, i: crate::ExprTryBlock) -> crate::ExprTryBlock {
- fold_expr_try_block(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_tuple(&mut self, i: crate::ExprTuple) -> crate::ExprTuple {
- fold_expr_tuple(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_unary(&mut self, i: crate::ExprUnary) -> crate::ExprUnary {
- fold_expr_unary(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_unsafe(&mut self, i: crate::ExprUnsafe) -> crate::ExprUnsafe {
- fold_expr_unsafe(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_while(&mut self, i: crate::ExprWhile) -> crate::ExprWhile {
- fold_expr_while(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_yield(&mut self, i: crate::ExprYield) -> crate::ExprYield {
- fold_expr_yield(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field(&mut self, i: crate::Field) -> crate::Field {
- fold_field(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field_mutability(
- &mut self,
- i: crate::FieldMutability,
- ) -> crate::FieldMutability {
- fold_field_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_field_pat(&mut self, i: crate::FieldPat) -> crate::FieldPat {
- fold_field_pat(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field_value(&mut self, i: crate::FieldValue) -> crate::FieldValue {
- fold_field_value(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields(&mut self, i: crate::Fields) -> crate::Fields {
- fold_fields(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields_named(&mut self, i: crate::FieldsNamed) -> crate::FieldsNamed {
- fold_fields_named(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields_unnamed(&mut self, i: crate::FieldsUnnamed) -> crate::FieldsUnnamed {
- fold_fields_unnamed(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_file(&mut self, i: crate::File) -> crate::File {
- fold_file(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_fn_arg(&mut self, i: crate::FnArg) -> crate::FnArg {
- fold_fn_arg(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item(&mut self, i: crate::ForeignItem) -> crate::ForeignItem {
- fold_foreign_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_fn(&mut self, i: crate::ForeignItemFn) -> crate::ForeignItemFn {
- fold_foreign_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_macro(
- &mut self,
- i: crate::ForeignItemMacro,
- ) -> crate::ForeignItemMacro {
- fold_foreign_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_static(
- &mut self,
- i: crate::ForeignItemStatic,
- ) -> crate::ForeignItemStatic {
- fold_foreign_item_static(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_type(
- &mut self,
- i: crate::ForeignItemType,
- ) -> crate::ForeignItemType {
- fold_foreign_item_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generic_argument(
- &mut self,
- i: crate::GenericArgument,
- ) -> crate::GenericArgument {
- fold_generic_argument(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generic_param(&mut self, i: crate::GenericParam) -> crate::GenericParam {
- fold_generic_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generics(&mut self, i: crate::Generics) -> crate::Generics {
- fold_generics(self, i)
- }
- fn fold_ident(&mut self, i: proc_macro2::Ident) -> proc_macro2::Ident {
- fold_ident(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item(&mut self, i: crate::ImplItem) -> crate::ImplItem {
- fold_impl_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_const(&mut self, i: crate::ImplItemConst) -> crate::ImplItemConst {
- fold_impl_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_fn(&mut self, i: crate::ImplItemFn) -> crate::ImplItemFn {
- fold_impl_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_macro(&mut self, i: crate::ImplItemMacro) -> crate::ImplItemMacro {
- fold_impl_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_type(&mut self, i: crate::ImplItemType) -> crate::ImplItemType {
- fold_impl_item_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_restriction(
- &mut self,
- i: crate::ImplRestriction,
- ) -> crate::ImplRestriction {
- fold_impl_restriction(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_index(&mut self, i: crate::Index) -> crate::Index {
- fold_index(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item(&mut self, i: crate::Item) -> crate::Item {
- fold_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_const(&mut self, i: crate::ItemConst) -> crate::ItemConst {
- fold_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_enum(&mut self, i: crate::ItemEnum) -> crate::ItemEnum {
- fold_item_enum(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_extern_crate(
- &mut self,
- i: crate::ItemExternCrate,
- ) -> crate::ItemExternCrate {
- fold_item_extern_crate(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_fn(&mut self, i: crate::ItemFn) -> crate::ItemFn {
- fold_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_foreign_mod(
- &mut self,
- i: crate::ItemForeignMod,
- ) -> crate::ItemForeignMod {
- fold_item_foreign_mod(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_impl(&mut self, i: crate::ItemImpl) -> crate::ItemImpl {
- fold_item_impl(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_macro(&mut self, i: crate::ItemMacro) -> crate::ItemMacro {
- fold_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_mod(&mut self, i: crate::ItemMod) -> crate::ItemMod {
- fold_item_mod(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_static(&mut self, i: crate::ItemStatic) -> crate::ItemStatic {
- fold_item_static(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_struct(&mut self, i: crate::ItemStruct) -> crate::ItemStruct {
- fold_item_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_trait(&mut self, i: crate::ItemTrait) -> crate::ItemTrait {
- fold_item_trait(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_trait_alias(
- &mut self,
- i: crate::ItemTraitAlias,
- ) -> crate::ItemTraitAlias {
- fold_item_trait_alias(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_type(&mut self, i: crate::ItemType) -> crate::ItemType {
- fold_item_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_union(&mut self, i: crate::ItemUnion) -> crate::ItemUnion {
- fold_item_union(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_use(&mut self, i: crate::ItemUse) -> crate::ItemUse {
- fold_item_use(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_label(&mut self, i: crate::Label) -> crate::Label {
- fold_label(self, i)
- }
- fn fold_lifetime(&mut self, i: crate::Lifetime) -> crate::Lifetime {
- fold_lifetime(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_lifetime_param(&mut self, i: crate::LifetimeParam) -> crate::LifetimeParam {
- fold_lifetime_param(self, i)
- }
- fn fold_lit(&mut self, i: crate::Lit) -> crate::Lit {
- fold_lit(self, i)
- }
- fn fold_lit_bool(&mut self, i: crate::LitBool) -> crate::LitBool {
- fold_lit_bool(self, i)
- }
- fn fold_lit_byte(&mut self, i: crate::LitByte) -> crate::LitByte {
- fold_lit_byte(self, i)
- }
- fn fold_lit_byte_str(&mut self, i: crate::LitByteStr) -> crate::LitByteStr {
- fold_lit_byte_str(self, i)
- }
- fn fold_lit_cstr(&mut self, i: crate::LitCStr) -> crate::LitCStr {
- fold_lit_cstr(self, i)
- }
- fn fold_lit_char(&mut self, i: crate::LitChar) -> crate::LitChar {
- fold_lit_char(self, i)
- }
- fn fold_lit_float(&mut self, i: crate::LitFloat) -> crate::LitFloat {
- fold_lit_float(self, i)
- }
- fn fold_lit_int(&mut self, i: crate::LitInt) -> crate::LitInt {
- fold_lit_int(self, i)
- }
- fn fold_lit_str(&mut self, i: crate::LitStr) -> crate::LitStr {
- fold_lit_str(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_local(&mut self, i: crate::Local) -> crate::Local {
- fold_local(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_local_init(&mut self, i: crate::LocalInit) -> crate::LocalInit {
- fold_local_init(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_macro(&mut self, i: crate::Macro) -> crate::Macro {
- fold_macro(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_macro_delimiter(
- &mut self,
- i: crate::MacroDelimiter,
- ) -> crate::MacroDelimiter {
- fold_macro_delimiter(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_member(&mut self, i: crate::Member) -> crate::Member {
- fold_member(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta(&mut self, i: crate::Meta) -> crate::Meta {
- fold_meta(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta_list(&mut self, i: crate::MetaList) -> crate::MetaList {
- fold_meta_list(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta_name_value(&mut self, i: crate::MetaNameValue) -> crate::MetaNameValue {
- fold_meta_name_value(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_parenthesized_generic_arguments(
- &mut self,
- i: crate::ParenthesizedGenericArguments,
- ) -> crate::ParenthesizedGenericArguments {
- fold_parenthesized_generic_arguments(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat(&mut self, i: crate::Pat) -> crate::Pat {
- fold_pat(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_ident(&mut self, i: crate::PatIdent) -> crate::PatIdent {
- fold_pat_ident(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_or(&mut self, i: crate::PatOr) -> crate::PatOr {
- fold_pat_or(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_paren(&mut self, i: crate::PatParen) -> crate::PatParen {
- fold_pat_paren(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_reference(&mut self, i: crate::PatReference) -> crate::PatReference {
- fold_pat_reference(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_rest(&mut self, i: crate::PatRest) -> crate::PatRest {
- fold_pat_rest(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_slice(&mut self, i: crate::PatSlice) -> crate::PatSlice {
- fold_pat_slice(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_struct(&mut self, i: crate::PatStruct) -> crate::PatStruct {
- fold_pat_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_tuple(&mut self, i: crate::PatTuple) -> crate::PatTuple {
- fold_pat_tuple(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_tuple_struct(
- &mut self,
- i: crate::PatTupleStruct,
- ) -> crate::PatTupleStruct {
- fold_pat_tuple_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_type(&mut self, i: crate::PatType) -> crate::PatType {
- fold_pat_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_wild(&mut self, i: crate::PatWild) -> crate::PatWild {
- fold_pat_wild(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path(&mut self, i: crate::Path) -> crate::Path {
- fold_path(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path_arguments(&mut self, i: crate::PathArguments) -> crate::PathArguments {
- fold_path_arguments(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path_segment(&mut self, i: crate::PathSegment) -> crate::PathSegment {
- fold_path_segment(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pointer_mutability(
- &mut self,
- i: crate::PointerMutability,
- ) -> crate::PointerMutability {
- fold_pointer_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_precise_capture(
- &mut self,
- i: crate::PreciseCapture,
- ) -> crate::PreciseCapture {
- fold_precise_capture(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_predicate_lifetime(
- &mut self,
- i: crate::PredicateLifetime,
- ) -> crate::PredicateLifetime {
- fold_predicate_lifetime(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_predicate_type(&mut self, i: crate::PredicateType) -> crate::PredicateType {
- fold_predicate_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_qself(&mut self, i: crate::QSelf) -> crate::QSelf {
- fold_qself(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_range_limits(&mut self, i: crate::RangeLimits) -> crate::RangeLimits {
- fold_range_limits(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_receiver(&mut self, i: crate::Receiver) -> crate::Receiver {
- fold_receiver(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_return_type(&mut self, i: crate::ReturnType) -> crate::ReturnType {
- fold_return_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_signature(&mut self, i: crate::Signature) -> crate::Signature {
- fold_signature(self, i)
- }
- fn fold_span(&mut self, i: proc_macro2::Span) -> proc_macro2::Span {
- i
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_static_mutability(
- &mut self,
- i: crate::StaticMutability,
- ) -> crate::StaticMutability {
- fold_static_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_stmt(&mut self, i: crate::Stmt) -> crate::Stmt {
- fold_stmt(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_stmt_macro(&mut self, i: crate::StmtMacro) -> crate::StmtMacro {
- fold_stmt_macro(self, i)
- }
- fn fold_token_stream(
- &mut self,
- i: proc_macro2::TokenStream,
- ) -> proc_macro2::TokenStream {
- i
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_trait_bound(&mut self, i: crate::TraitBound) -> crate::TraitBound {
- fold_trait_bound(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_trait_bound_modifier(
- &mut self,
- i: crate::TraitBoundModifier,
- ) -> crate::TraitBoundModifier {
- fold_trait_bound_modifier(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item(&mut self, i: crate::TraitItem) -> crate::TraitItem {
- fold_trait_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_const(
- &mut self,
- i: crate::TraitItemConst,
- ) -> crate::TraitItemConst {
- fold_trait_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_fn(&mut self, i: crate::TraitItemFn) -> crate::TraitItemFn {
- fold_trait_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_macro(
- &mut self,
- i: crate::TraitItemMacro,
- ) -> crate::TraitItemMacro {
- fold_trait_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_type(&mut self, i: crate::TraitItemType) -> crate::TraitItemType {
- fold_trait_item_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type(&mut self, i: crate::Type) -> crate::Type {
- fold_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_array(&mut self, i: crate::TypeArray) -> crate::TypeArray {
- fold_type_array(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_bare_fn(&mut self, i: crate::TypeBareFn) -> crate::TypeBareFn {
- fold_type_bare_fn(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_group(&mut self, i: crate::TypeGroup) -> crate::TypeGroup {
- fold_type_group(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_impl_trait(&mut self, i: crate::TypeImplTrait) -> crate::TypeImplTrait {
- fold_type_impl_trait(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_infer(&mut self, i: crate::TypeInfer) -> crate::TypeInfer {
- fold_type_infer(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_macro(&mut self, i: crate::TypeMacro) -> crate::TypeMacro {
- fold_type_macro(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_never(&mut self, i: crate::TypeNever) -> crate::TypeNever {
- fold_type_never(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_param(&mut self, i: crate::TypeParam) -> crate::TypeParam {
- fold_type_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_param_bound(
- &mut self,
- i: crate::TypeParamBound,
- ) -> crate::TypeParamBound {
- fold_type_param_bound(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_paren(&mut self, i: crate::TypeParen) -> crate::TypeParen {
- fold_type_paren(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_path(&mut self, i: crate::TypePath) -> crate::TypePath {
- fold_type_path(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_ptr(&mut self, i: crate::TypePtr) -> crate::TypePtr {
- fold_type_ptr(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_reference(&mut self, i: crate::TypeReference) -> crate::TypeReference {
- fold_type_reference(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_slice(&mut self, i: crate::TypeSlice) -> crate::TypeSlice {
- fold_type_slice(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_trait_object(
- &mut self,
- i: crate::TypeTraitObject,
- ) -> crate::TypeTraitObject {
- fold_type_trait_object(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_tuple(&mut self, i: crate::TypeTuple) -> crate::TypeTuple {
- fold_type_tuple(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_un_op(&mut self, i: crate::UnOp) -> crate::UnOp {
- fold_un_op(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_glob(&mut self, i: crate::UseGlob) -> crate::UseGlob {
- fold_use_glob(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_group(&mut self, i: crate::UseGroup) -> crate::UseGroup {
- fold_use_group(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_name(&mut self, i: crate::UseName) -> crate::UseName {
- fold_use_name(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_path(&mut self, i: crate::UsePath) -> crate::UsePath {
- fold_use_path(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_rename(&mut self, i: crate::UseRename) -> crate::UseRename {
- fold_use_rename(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_tree(&mut self, i: crate::UseTree) -> crate::UseTree {
- fold_use_tree(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_variadic(&mut self, i: crate::Variadic) -> crate::Variadic {
- fold_variadic(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_variant(&mut self, i: crate::Variant) -> crate::Variant {
- fold_variant(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_vis_restricted(&mut self, i: crate::VisRestricted) -> crate::VisRestricted {
- fold_vis_restricted(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_visibility(&mut self, i: crate::Visibility) -> crate::Visibility {
- fold_visibility(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_where_clause(&mut self, i: crate::WhereClause) -> crate::WhereClause {
- fold_where_clause(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_where_predicate(
- &mut self,
- i: crate::WherePredicate,
- ) -> crate::WherePredicate {
- fold_where_predicate(self, i)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_abi<F>(f: &mut F, node: crate::Abi) -> crate::Abi
-where
- F: Fold + ?Sized,
-{
- crate::Abi {
- extern_token: node.extern_token,
- name: (node.name).map(|it| f.fold_lit_str(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_angle_bracketed_generic_arguments<F>(
- f: &mut F,
- node: crate::AngleBracketedGenericArguments,
-) -> crate::AngleBracketedGenericArguments
-where
- F: Fold + ?Sized,
-{
- crate::AngleBracketedGenericArguments {
- colon2_token: node.colon2_token,
- lt_token: node.lt_token,
- args: crate::punctuated::fold(node.args, f, F::fold_generic_argument),
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_arm<F>(f: &mut F, node: crate::Arm) -> crate::Arm
-where
- F: Fold + ?Sized,
-{
- crate::Arm {
- attrs: f.fold_attributes(node.attrs),
- pat: f.fold_pat(node.pat),
- guard: (node.guard).map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- fat_arrow_token: node.fat_arrow_token,
- body: Box::new(f.fold_expr(*node.body)),
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_assoc_const<F>(f: &mut F, node: crate::AssocConst) -> crate::AssocConst
-where
- F: Fold + ?Sized,
-{
- crate::AssocConst {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- eq_token: node.eq_token,
- value: f.fold_expr(node.value),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_assoc_type<F>(f: &mut F, node: crate::AssocType) -> crate::AssocType
-where
- F: Fold + ?Sized,
-{
- crate::AssocType {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- eq_token: node.eq_token,
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_attr_style<F>(f: &mut F, node: crate::AttrStyle) -> crate::AttrStyle
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::AttrStyle::Outer => crate::AttrStyle::Outer,
- crate::AttrStyle::Inner(_binding_0) => crate::AttrStyle::Inner(_binding_0),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_attribute<F>(f: &mut F, node: crate::Attribute) -> crate::Attribute
-where
- F: Fold + ?Sized,
-{
- crate::Attribute {
- pound_token: node.pound_token,
- style: f.fold_attr_style(node.style),
- bracket_token: node.bracket_token,
- meta: f.fold_meta(node.meta),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bare_fn_arg<F>(f: &mut F, node: crate::BareFnArg) -> crate::BareFnArg
-where
- F: Fold + ?Sized,
-{
- crate::BareFnArg {
- attrs: f.fold_attributes(node.attrs),
- name: (node.name).map(|it| (f.fold_ident((it).0), (it).1)),
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bare_variadic<F>(f: &mut F, node: crate::BareVariadic) -> crate::BareVariadic
-where
- F: Fold + ?Sized,
-{
- crate::BareVariadic {
- attrs: f.fold_attributes(node.attrs),
- name: (node.name).map(|it| (f.fold_ident((it).0), (it).1)),
- dots: node.dots,
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bin_op<F>(f: &mut F, node: crate::BinOp) -> crate::BinOp
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::BinOp::Add(_binding_0) => crate::BinOp::Add(_binding_0),
- crate::BinOp::Sub(_binding_0) => crate::BinOp::Sub(_binding_0),
- crate::BinOp::Mul(_binding_0) => crate::BinOp::Mul(_binding_0),
- crate::BinOp::Div(_binding_0) => crate::BinOp::Div(_binding_0),
- crate::BinOp::Rem(_binding_0) => crate::BinOp::Rem(_binding_0),
- crate::BinOp::And(_binding_0) => crate::BinOp::And(_binding_0),
- crate::BinOp::Or(_binding_0) => crate::BinOp::Or(_binding_0),
- crate::BinOp::BitXor(_binding_0) => crate::BinOp::BitXor(_binding_0),
- crate::BinOp::BitAnd(_binding_0) => crate::BinOp::BitAnd(_binding_0),
- crate::BinOp::BitOr(_binding_0) => crate::BinOp::BitOr(_binding_0),
- crate::BinOp::Shl(_binding_0) => crate::BinOp::Shl(_binding_0),
- crate::BinOp::Shr(_binding_0) => crate::BinOp::Shr(_binding_0),
- crate::BinOp::Eq(_binding_0) => crate::BinOp::Eq(_binding_0),
- crate::BinOp::Lt(_binding_0) => crate::BinOp::Lt(_binding_0),
- crate::BinOp::Le(_binding_0) => crate::BinOp::Le(_binding_0),
- crate::BinOp::Ne(_binding_0) => crate::BinOp::Ne(_binding_0),
- crate::BinOp::Ge(_binding_0) => crate::BinOp::Ge(_binding_0),
- crate::BinOp::Gt(_binding_0) => crate::BinOp::Gt(_binding_0),
- crate::BinOp::AddAssign(_binding_0) => crate::BinOp::AddAssign(_binding_0),
- crate::BinOp::SubAssign(_binding_0) => crate::BinOp::SubAssign(_binding_0),
- crate::BinOp::MulAssign(_binding_0) => crate::BinOp::MulAssign(_binding_0),
- crate::BinOp::DivAssign(_binding_0) => crate::BinOp::DivAssign(_binding_0),
- crate::BinOp::RemAssign(_binding_0) => crate::BinOp::RemAssign(_binding_0),
- crate::BinOp::BitXorAssign(_binding_0) => crate::BinOp::BitXorAssign(_binding_0),
- crate::BinOp::BitAndAssign(_binding_0) => crate::BinOp::BitAndAssign(_binding_0),
- crate::BinOp::BitOrAssign(_binding_0) => crate::BinOp::BitOrAssign(_binding_0),
- crate::BinOp::ShlAssign(_binding_0) => crate::BinOp::ShlAssign(_binding_0),
- crate::BinOp::ShrAssign(_binding_0) => crate::BinOp::ShrAssign(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_block<F>(f: &mut F, node: crate::Block) -> crate::Block
-where
- F: Fold + ?Sized,
-{
- crate::Block {
- brace_token: node.brace_token,
- stmts: fold_vec(node.stmts, f, F::fold_stmt),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bound_lifetimes<F>(
- f: &mut F,
- node: crate::BoundLifetimes,
-) -> crate::BoundLifetimes
-where
- F: Fold + ?Sized,
-{
- crate::BoundLifetimes {
- for_token: node.for_token,
- lt_token: node.lt_token,
- lifetimes: crate::punctuated::fold(node.lifetimes, f, F::fold_generic_param),
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_captured_param<F>(
- f: &mut F,
- node: crate::CapturedParam,
-) -> crate::CapturedParam
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- crate::CapturedParam::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::CapturedParam::Ident(_binding_0) => {
- crate::CapturedParam::Ident(f.fold_ident(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_const_param<F>(f: &mut F, node: crate::ConstParam) -> crate::ConstParam
-where
- F: Fold + ?Sized,
-{
- crate::ConstParam {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- eq_token: node.eq_token,
- default: (node.default).map(|it| f.fold_expr(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_constraint<F>(f: &mut F, node: crate::Constraint) -> crate::Constraint
-where
- F: Fold + ?Sized,
-{
- crate::Constraint {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data<F>(f: &mut F, node: crate::Data) -> crate::Data
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Data::Struct(_binding_0) => {
- crate::Data::Struct(f.fold_data_struct(_binding_0))
- }
- crate::Data::Enum(_binding_0) => crate::Data::Enum(f.fold_data_enum(_binding_0)),
- crate::Data::Union(_binding_0) => {
- crate::Data::Union(f.fold_data_union(_binding_0))
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_enum<F>(f: &mut F, node: crate::DataEnum) -> crate::DataEnum
-where
- F: Fold + ?Sized,
-{
- crate::DataEnum {
- enum_token: node.enum_token,
- brace_token: node.brace_token,
- variants: crate::punctuated::fold(node.variants, f, F::fold_variant),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_struct<F>(f: &mut F, node: crate::DataStruct) -> crate::DataStruct
-where
- F: Fold + ?Sized,
-{
- crate::DataStruct {
- struct_token: node.struct_token,
- fields: f.fold_fields(node.fields),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_union<F>(f: &mut F, node: crate::DataUnion) -> crate::DataUnion
-where
- F: Fold + ?Sized,
-{
- crate::DataUnion {
- union_token: node.union_token,
- fields: f.fold_fields_named(node.fields),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_derive_input<F>(f: &mut F, node: crate::DeriveInput) -> crate::DeriveInput
-where
- F: Fold + ?Sized,
-{
- crate::DeriveInput {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- data: f.fold_data(node.data),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr<F>(f: &mut F, node: crate::Expr) -> crate::Expr
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Expr::Array(_binding_0) => {
- crate::Expr::Array(full!(f.fold_expr_array(_binding_0)))
- }
- crate::Expr::Assign(_binding_0) => {
- crate::Expr::Assign(full!(f.fold_expr_assign(_binding_0)))
- }
- crate::Expr::Async(_binding_0) => {
- crate::Expr::Async(full!(f.fold_expr_async(_binding_0)))
- }
- crate::Expr::Await(_binding_0) => {
- crate::Expr::Await(full!(f.fold_expr_await(_binding_0)))
- }
- crate::Expr::Binary(_binding_0) => {
- crate::Expr::Binary(f.fold_expr_binary(_binding_0))
- }
- crate::Expr::Block(_binding_0) => {
- crate::Expr::Block(full!(f.fold_expr_block(_binding_0)))
- }
- crate::Expr::Break(_binding_0) => {
- crate::Expr::Break(full!(f.fold_expr_break(_binding_0)))
- }
- crate::Expr::Call(_binding_0) => crate::Expr::Call(f.fold_expr_call(_binding_0)),
- crate::Expr::Cast(_binding_0) => crate::Expr::Cast(f.fold_expr_cast(_binding_0)),
- crate::Expr::Closure(_binding_0) => {
- crate::Expr::Closure(full!(f.fold_expr_closure(_binding_0)))
- }
- crate::Expr::Const(_binding_0) => {
- crate::Expr::Const(full!(f.fold_expr_const(_binding_0)))
- }
- crate::Expr::Continue(_binding_0) => {
- crate::Expr::Continue(full!(f.fold_expr_continue(_binding_0)))
- }
- crate::Expr::Field(_binding_0) => {
- crate::Expr::Field(f.fold_expr_field(_binding_0))
- }
- crate::Expr::ForLoop(_binding_0) => {
- crate::Expr::ForLoop(full!(f.fold_expr_for_loop(_binding_0)))
- }
- crate::Expr::Group(_binding_0) => {
- crate::Expr::Group(f.fold_expr_group(_binding_0))
- }
- crate::Expr::If(_binding_0) => crate::Expr::If(full!(f.fold_expr_if(_binding_0))),
- crate::Expr::Index(_binding_0) => {
- crate::Expr::Index(f.fold_expr_index(_binding_0))
- }
- crate::Expr::Infer(_binding_0) => {
- crate::Expr::Infer(full!(f.fold_expr_infer(_binding_0)))
- }
- crate::Expr::Let(_binding_0) => {
- crate::Expr::Let(full!(f.fold_expr_let(_binding_0)))
- }
- crate::Expr::Lit(_binding_0) => crate::Expr::Lit(f.fold_expr_lit(_binding_0)),
- crate::Expr::Loop(_binding_0) => {
- crate::Expr::Loop(full!(f.fold_expr_loop(_binding_0)))
- }
- crate::Expr::Macro(_binding_0) => {
- crate::Expr::Macro(f.fold_expr_macro(_binding_0))
- }
- crate::Expr::Match(_binding_0) => {
- crate::Expr::Match(full!(f.fold_expr_match(_binding_0)))
- }
- crate::Expr::MethodCall(_binding_0) => {
- crate::Expr::MethodCall(f.fold_expr_method_call(_binding_0))
- }
- crate::Expr::Paren(_binding_0) => {
- crate::Expr::Paren(f.fold_expr_paren(_binding_0))
- }
- crate::Expr::Path(_binding_0) => crate::Expr::Path(f.fold_expr_path(_binding_0)),
- crate::Expr::Range(_binding_0) => {
- crate::Expr::Range(full!(f.fold_expr_range(_binding_0)))
- }
- crate::Expr::RawAddr(_binding_0) => {
- crate::Expr::RawAddr(full!(f.fold_expr_raw_addr(_binding_0)))
- }
- crate::Expr::Reference(_binding_0) => {
- crate::Expr::Reference(f.fold_expr_reference(_binding_0))
- }
- crate::Expr::Repeat(_binding_0) => {
- crate::Expr::Repeat(full!(f.fold_expr_repeat(_binding_0)))
- }
- crate::Expr::Return(_binding_0) => {
- crate::Expr::Return(full!(f.fold_expr_return(_binding_0)))
- }
- crate::Expr::Struct(_binding_0) => {
- crate::Expr::Struct(f.fold_expr_struct(_binding_0))
- }
- crate::Expr::Try(_binding_0) => {
- crate::Expr::Try(full!(f.fold_expr_try(_binding_0)))
- }
- crate::Expr::TryBlock(_binding_0) => {
- crate::Expr::TryBlock(full!(f.fold_expr_try_block(_binding_0)))
- }
- crate::Expr::Tuple(_binding_0) => {
- crate::Expr::Tuple(f.fold_expr_tuple(_binding_0))
- }
- crate::Expr::Unary(_binding_0) => {
- crate::Expr::Unary(f.fold_expr_unary(_binding_0))
- }
- crate::Expr::Unsafe(_binding_0) => {
- crate::Expr::Unsafe(full!(f.fold_expr_unsafe(_binding_0)))
- }
- crate::Expr::Verbatim(_binding_0) => {
- crate::Expr::Verbatim(f.fold_token_stream(_binding_0))
- }
- crate::Expr::While(_binding_0) => {
- crate::Expr::While(full!(f.fold_expr_while(_binding_0)))
- }
- crate::Expr::Yield(_binding_0) => {
- crate::Expr::Yield(full!(f.fold_expr_yield(_binding_0)))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_array<F>(f: &mut F, node: crate::ExprArray) -> crate::ExprArray
-where
- F: Fold + ?Sized,
-{
- crate::ExprArray {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_expr),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_assign<F>(f: &mut F, node: crate::ExprAssign) -> crate::ExprAssign
-where
- F: Fold + ?Sized,
-{
- crate::ExprAssign {
- attrs: f.fold_attributes(node.attrs),
- left: Box::new(f.fold_expr(*node.left)),
- eq_token: node.eq_token,
- right: Box::new(f.fold_expr(*node.right)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_async<F>(f: &mut F, node: crate::ExprAsync) -> crate::ExprAsync
-where
- F: Fold + ?Sized,
-{
- crate::ExprAsync {
- attrs: f.fold_attributes(node.attrs),
- async_token: node.async_token,
- capture: node.capture,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_await<F>(f: &mut F, node: crate::ExprAwait) -> crate::ExprAwait
-where
- F: Fold + ?Sized,
-{
- crate::ExprAwait {
- attrs: f.fold_attributes(node.attrs),
- base: Box::new(f.fold_expr(*node.base)),
- dot_token: node.dot_token,
- await_token: node.await_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_binary<F>(f: &mut F, node: crate::ExprBinary) -> crate::ExprBinary
-where
- F: Fold + ?Sized,
-{
- crate::ExprBinary {
- attrs: f.fold_attributes(node.attrs),
- left: Box::new(f.fold_expr(*node.left)),
- op: f.fold_bin_op(node.op),
- right: Box::new(f.fold_expr(*node.right)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_block<F>(f: &mut F, node: crate::ExprBlock) -> crate::ExprBlock
-where
- F: Fold + ?Sized,
-{
- crate::ExprBlock {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_break<F>(f: &mut F, node: crate::ExprBreak) -> crate::ExprBreak
-where
- F: Fold + ?Sized,
-{
- crate::ExprBreak {
- attrs: f.fold_attributes(node.attrs),
- break_token: node.break_token,
- label: (node.label).map(|it| f.fold_lifetime(it)),
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_call<F>(f: &mut F, node: crate::ExprCall) -> crate::ExprCall
-where
- F: Fold + ?Sized,
-{
- crate::ExprCall {
- attrs: f.fold_attributes(node.attrs),
- func: Box::new(f.fold_expr(*node.func)),
- paren_token: node.paren_token,
- args: crate::punctuated::fold(node.args, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_cast<F>(f: &mut F, node: crate::ExprCast) -> crate::ExprCast
-where
- F: Fold + ?Sized,
-{
- crate::ExprCast {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- as_token: node.as_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_closure<F>(f: &mut F, node: crate::ExprClosure) -> crate::ExprClosure
-where
- F: Fold + ?Sized,
-{
- crate::ExprClosure {
- attrs: f.fold_attributes(node.attrs),
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- constness: node.constness,
- movability: node.movability,
- asyncness: node.asyncness,
- capture: node.capture,
- or1_token: node.or1_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_pat),
- or2_token: node.or2_token,
- output: f.fold_return_type(node.output),
- body: Box::new(f.fold_expr(*node.body)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_const<F>(f: &mut F, node: crate::ExprConst) -> crate::ExprConst
-where
- F: Fold + ?Sized,
-{
- crate::ExprConst {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_continue<F>(f: &mut F, node: crate::ExprContinue) -> crate::ExprContinue
-where
- F: Fold + ?Sized,
-{
- crate::ExprContinue {
- attrs: f.fold_attributes(node.attrs),
- continue_token: node.continue_token,
- label: (node.label).map(|it| f.fold_lifetime(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_field<F>(f: &mut F, node: crate::ExprField) -> crate::ExprField
-where
- F: Fold + ?Sized,
-{
- crate::ExprField {
- attrs: f.fold_attributes(node.attrs),
- base: Box::new(f.fold_expr(*node.base)),
- dot_token: node.dot_token,
- member: f.fold_member(node.member),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_for_loop<F>(f: &mut F, node: crate::ExprForLoop) -> crate::ExprForLoop
-where
- F: Fold + ?Sized,
-{
- crate::ExprForLoop {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- for_token: node.for_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- in_token: node.in_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- body: f.fold_block(node.body),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_group<F>(f: &mut F, node: crate::ExprGroup) -> crate::ExprGroup
-where
- F: Fold + ?Sized,
-{
- crate::ExprGroup {
- attrs: f.fold_attributes(node.attrs),
- group_token: node.group_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_if<F>(f: &mut F, node: crate::ExprIf) -> crate::ExprIf
-where
- F: Fold + ?Sized,
-{
- crate::ExprIf {
- attrs: f.fold_attributes(node.attrs),
- if_token: node.if_token,
- cond: Box::new(f.fold_expr(*node.cond)),
- then_branch: f.fold_block(node.then_branch),
- else_branch: (node.else_branch)
- .map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_index<F>(f: &mut F, node: crate::ExprIndex) -> crate::ExprIndex
-where
- F: Fold + ?Sized,
-{
- crate::ExprIndex {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- bracket_token: node.bracket_token,
- index: Box::new(f.fold_expr(*node.index)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_infer<F>(f: &mut F, node: crate::ExprInfer) -> crate::ExprInfer
-where
- F: Fold + ?Sized,
-{
- crate::ExprInfer {
- attrs: f.fold_attributes(node.attrs),
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_let<F>(f: &mut F, node: crate::ExprLet) -> crate::ExprLet
-where
- F: Fold + ?Sized,
-{
- crate::ExprLet {
- attrs: f.fold_attributes(node.attrs),
- let_token: node.let_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_lit<F>(f: &mut F, node: crate::ExprLit) -> crate::ExprLit
-where
- F: Fold + ?Sized,
-{
- crate::ExprLit {
- attrs: f.fold_attributes(node.attrs),
- lit: f.fold_lit(node.lit),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_loop<F>(f: &mut F, node: crate::ExprLoop) -> crate::ExprLoop
-where
- F: Fold + ?Sized,
-{
- crate::ExprLoop {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- loop_token: node.loop_token,
- body: f.fold_block(node.body),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_macro<F>(f: &mut F, node: crate::ExprMacro) -> crate::ExprMacro
-where
- F: Fold + ?Sized,
-{
- crate::ExprMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_match<F>(f: &mut F, node: crate::ExprMatch) -> crate::ExprMatch
-where
- F: Fold + ?Sized,
-{
- crate::ExprMatch {
- attrs: f.fold_attributes(node.attrs),
- match_token: node.match_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- brace_token: node.brace_token,
- arms: fold_vec(node.arms, f, F::fold_arm),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_method_call<F>(
- f: &mut F,
- node: crate::ExprMethodCall,
-) -> crate::ExprMethodCall
-where
- F: Fold + ?Sized,
-{
- crate::ExprMethodCall {
- attrs: f.fold_attributes(node.attrs),
- receiver: Box::new(f.fold_expr(*node.receiver)),
- dot_token: node.dot_token,
- method: f.fold_ident(node.method),
- turbofish: (node.turbofish)
- .map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- paren_token: node.paren_token,
- args: crate::punctuated::fold(node.args, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_paren<F>(f: &mut F, node: crate::ExprParen) -> crate::ExprParen
-where
- F: Fold + ?Sized,
-{
- crate::ExprParen {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_path<F>(f: &mut F, node: crate::ExprPath) -> crate::ExprPath
-where
- F: Fold + ?Sized,
-{
- crate::ExprPath {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_range<F>(f: &mut F, node: crate::ExprRange) -> crate::ExprRange
-where
- F: Fold + ?Sized,
-{
- crate::ExprRange {
- attrs: f.fold_attributes(node.attrs),
- start: (node.start).map(|it| Box::new(f.fold_expr(*it))),
- limits: f.fold_range_limits(node.limits),
- end: (node.end).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_raw_addr<F>(f: &mut F, node: crate::ExprRawAddr) -> crate::ExprRawAddr
-where
- F: Fold + ?Sized,
-{
- crate::ExprRawAddr {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- raw: node.raw,
- mutability: f.fold_pointer_mutability(node.mutability),
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_reference<F>(
- f: &mut F,
- node: crate::ExprReference,
-) -> crate::ExprReference
-where
- F: Fold + ?Sized,
-{
- crate::ExprReference {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- mutability: node.mutability,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_repeat<F>(f: &mut F, node: crate::ExprRepeat) -> crate::ExprRepeat
-where
- F: Fold + ?Sized,
-{
- crate::ExprRepeat {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- len: Box::new(f.fold_expr(*node.len)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_return<F>(f: &mut F, node: crate::ExprReturn) -> crate::ExprReturn
-where
- F: Fold + ?Sized,
-{
- crate::ExprReturn {
- attrs: f.fold_attributes(node.attrs),
- return_token: node.return_token,
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_struct<F>(f: &mut F, node: crate::ExprStruct) -> crate::ExprStruct
-where
- F: Fold + ?Sized,
-{
- crate::ExprStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- brace_token: node.brace_token,
- fields: crate::punctuated::fold(node.fields, f, F::fold_field_value),
- dot2_token: node.dot2_token,
- rest: (node.rest).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_try<F>(f: &mut F, node: crate::ExprTry) -> crate::ExprTry
-where
- F: Fold + ?Sized,
-{
- crate::ExprTry {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- question_token: node.question_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_try_block<F>(
- f: &mut F,
- node: crate::ExprTryBlock,
-) -> crate::ExprTryBlock
-where
- F: Fold + ?Sized,
-{
- crate::ExprTryBlock {
- attrs: f.fold_attributes(node.attrs),
- try_token: node.try_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_tuple<F>(f: &mut F, node: crate::ExprTuple) -> crate::ExprTuple
-where
- F: Fold + ?Sized,
-{
- crate::ExprTuple {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_unary<F>(f: &mut F, node: crate::ExprUnary) -> crate::ExprUnary
-where
- F: Fold + ?Sized,
-{
- crate::ExprUnary {
- attrs: f.fold_attributes(node.attrs),
- op: f.fold_un_op(node.op),
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_unsafe<F>(f: &mut F, node: crate::ExprUnsafe) -> crate::ExprUnsafe
-where
- F: Fold + ?Sized,
-{
- crate::ExprUnsafe {
- attrs: f.fold_attributes(node.attrs),
- unsafe_token: node.unsafe_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_while<F>(f: &mut F, node: crate::ExprWhile) -> crate::ExprWhile
-where
- F: Fold + ?Sized,
-{
- crate::ExprWhile {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- while_token: node.while_token,
- cond: Box::new(f.fold_expr(*node.cond)),
- body: f.fold_block(node.body),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_yield<F>(f: &mut F, node: crate::ExprYield) -> crate::ExprYield
-where
- F: Fold + ?Sized,
-{
- crate::ExprYield {
- attrs: f.fold_attributes(node.attrs),
- yield_token: node.yield_token,
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field<F>(f: &mut F, node: crate::Field) -> crate::Field
-where
- F: Fold + ?Sized,
-{
- crate::Field {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- mutability: f.fold_field_mutability(node.mutability),
- ident: (node.ident).map(|it| f.fold_ident(it)),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field_mutability<F>(
- f: &mut F,
- node: crate::FieldMutability,
-) -> crate::FieldMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::FieldMutability::None => crate::FieldMutability::None,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_field_pat<F>(f: &mut F, node: crate::FieldPat) -> crate::FieldPat
-where
- F: Fold + ?Sized,
-{
- crate::FieldPat {
- attrs: f.fold_attributes(node.attrs),
- member: f.fold_member(node.member),
- colon_token: node.colon_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field_value<F>(f: &mut F, node: crate::FieldValue) -> crate::FieldValue
-where
- F: Fold + ?Sized,
-{
- crate::FieldValue {
- attrs: f.fold_attributes(node.attrs),
- member: f.fold_member(node.member),
- colon_token: node.colon_token,
- expr: f.fold_expr(node.expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields<F>(f: &mut F, node: crate::Fields) -> crate::Fields
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Fields::Named(_binding_0) => {
- crate::Fields::Named(f.fold_fields_named(_binding_0))
- }
- crate::Fields::Unnamed(_binding_0) => {
- crate::Fields::Unnamed(f.fold_fields_unnamed(_binding_0))
- }
- crate::Fields::Unit => crate::Fields::Unit,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields_named<F>(f: &mut F, node: crate::FieldsNamed) -> crate::FieldsNamed
-where
- F: Fold + ?Sized,
-{
- crate::FieldsNamed {
- brace_token: node.brace_token,
- named: crate::punctuated::fold(node.named, f, F::fold_field),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields_unnamed<F>(
- f: &mut F,
- node: crate::FieldsUnnamed,
-) -> crate::FieldsUnnamed
-where
- F: Fold + ?Sized,
-{
- crate::FieldsUnnamed {
- paren_token: node.paren_token,
- unnamed: crate::punctuated::fold(node.unnamed, f, F::fold_field),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_file<F>(f: &mut F, node: crate::File) -> crate::File
-where
- F: Fold + ?Sized,
-{
- crate::File {
- shebang: node.shebang,
- attrs: f.fold_attributes(node.attrs),
- items: fold_vec(node.items, f, F::fold_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_fn_arg<F>(f: &mut F, node: crate::FnArg) -> crate::FnArg
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- crate::FnArg::Receiver(f.fold_receiver(_binding_0))
- }
- crate::FnArg::Typed(_binding_0) => {
- crate::FnArg::Typed(f.fold_pat_type(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item<F>(f: &mut F, node: crate::ForeignItem) -> crate::ForeignItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- crate::ForeignItem::Fn(f.fold_foreign_item_fn(_binding_0))
- }
- crate::ForeignItem::Static(_binding_0) => {
- crate::ForeignItem::Static(f.fold_foreign_item_static(_binding_0))
- }
- crate::ForeignItem::Type(_binding_0) => {
- crate::ForeignItem::Type(f.fold_foreign_item_type(_binding_0))
- }
- crate::ForeignItem::Macro(_binding_0) => {
- crate::ForeignItem::Macro(f.fold_foreign_item_macro(_binding_0))
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- crate::ForeignItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_fn<F>(
- f: &mut F,
- node: crate::ForeignItemFn,
-) -> crate::ForeignItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- sig: f.fold_signature(node.sig),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_macro<F>(
- f: &mut F,
- node: crate::ForeignItemMacro,
-) -> crate::ForeignItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_static<F>(
- f: &mut F,
- node: crate::ForeignItemStatic,
-) -> crate::ForeignItemStatic
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemStatic {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- static_token: node.static_token,
- mutability: f.fold_static_mutability(node.mutability),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_type<F>(
- f: &mut F,
- node: crate::ForeignItemType,
-) -> crate::ForeignItemType
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generic_argument<F>(
- f: &mut F,
- node: crate::GenericArgument,
-) -> crate::GenericArgument
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- crate::GenericArgument::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::GenericArgument::Type(_binding_0) => {
- crate::GenericArgument::Type(f.fold_type(_binding_0))
- }
- crate::GenericArgument::Const(_binding_0) => {
- crate::GenericArgument::Const(f.fold_expr(_binding_0))
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- crate::GenericArgument::AssocType(f.fold_assoc_type(_binding_0))
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- crate::GenericArgument::AssocConst(f.fold_assoc_const(_binding_0))
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- crate::GenericArgument::Constraint(f.fold_constraint(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generic_param<F>(f: &mut F, node: crate::GenericParam) -> crate::GenericParam
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- crate::GenericParam::Lifetime(f.fold_lifetime_param(_binding_0))
- }
- crate::GenericParam::Type(_binding_0) => {
- crate::GenericParam::Type(f.fold_type_param(_binding_0))
- }
- crate::GenericParam::Const(_binding_0) => {
- crate::GenericParam::Const(f.fold_const_param(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generics<F>(f: &mut F, node: crate::Generics) -> crate::Generics
-where
- F: Fold + ?Sized,
-{
- crate::Generics {
- lt_token: node.lt_token,
- params: crate::punctuated::fold(node.params, f, F::fold_generic_param),
- gt_token: node.gt_token,
- where_clause: (node.where_clause).map(|it| f.fold_where_clause(it)),
- }
-}
-pub fn fold_ident<F>(f: &mut F, node: proc_macro2::Ident) -> proc_macro2::Ident
-where
- F: Fold + ?Sized,
-{
- let mut node = node;
- let span = f.fold_span(node.span());
- node.set_span(span);
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item<F>(f: &mut F, node: crate::ImplItem) -> crate::ImplItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ImplItem::Const(_binding_0) => {
- crate::ImplItem::Const(f.fold_impl_item_const(_binding_0))
- }
- crate::ImplItem::Fn(_binding_0) => {
- crate::ImplItem::Fn(f.fold_impl_item_fn(_binding_0))
- }
- crate::ImplItem::Type(_binding_0) => {
- crate::ImplItem::Type(f.fold_impl_item_type(_binding_0))
- }
- crate::ImplItem::Macro(_binding_0) => {
- crate::ImplItem::Macro(f.fold_impl_item_macro(_binding_0))
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- crate::ImplItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_const<F>(
- f: &mut F,
- node: crate::ImplItemConst,
-) -> crate::ImplItemConst
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemConst {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- eq_token: node.eq_token,
- expr: f.fold_expr(node.expr),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_fn<F>(f: &mut F, node: crate::ImplItemFn) -> crate::ImplItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- sig: f.fold_signature(node.sig),
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_macro<F>(
- f: &mut F,
- node: crate::ImplItemMacro,
-) -> crate::ImplItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_type<F>(
- f: &mut F,
- node: crate::ImplItemType,
-) -> crate::ImplItemType
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- ty: f.fold_type(node.ty),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_restriction<F>(
- f: &mut F,
- node: crate::ImplRestriction,
-) -> crate::ImplRestriction
-where
- F: Fold + ?Sized,
-{
- match node {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_index<F>(f: &mut F, node: crate::Index) -> crate::Index
-where
- F: Fold + ?Sized,
-{
- crate::Index {
- index: node.index,
- span: f.fold_span(node.span),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item<F>(f: &mut F, node: crate::Item) -> crate::Item
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Item::Const(_binding_0) => {
- crate::Item::Const(f.fold_item_const(_binding_0))
- }
- crate::Item::Enum(_binding_0) => crate::Item::Enum(f.fold_item_enum(_binding_0)),
- crate::Item::ExternCrate(_binding_0) => {
- crate::Item::ExternCrate(f.fold_item_extern_crate(_binding_0))
- }
- crate::Item::Fn(_binding_0) => crate::Item::Fn(f.fold_item_fn(_binding_0)),
- crate::Item::ForeignMod(_binding_0) => {
- crate::Item::ForeignMod(f.fold_item_foreign_mod(_binding_0))
- }
- crate::Item::Impl(_binding_0) => crate::Item::Impl(f.fold_item_impl(_binding_0)),
- crate::Item::Macro(_binding_0) => {
- crate::Item::Macro(f.fold_item_macro(_binding_0))
- }
- crate::Item::Mod(_binding_0) => crate::Item::Mod(f.fold_item_mod(_binding_0)),
- crate::Item::Static(_binding_0) => {
- crate::Item::Static(f.fold_item_static(_binding_0))
- }
- crate::Item::Struct(_binding_0) => {
- crate::Item::Struct(f.fold_item_struct(_binding_0))
- }
- crate::Item::Trait(_binding_0) => {
- crate::Item::Trait(f.fold_item_trait(_binding_0))
- }
- crate::Item::TraitAlias(_binding_0) => {
- crate::Item::TraitAlias(f.fold_item_trait_alias(_binding_0))
- }
- crate::Item::Type(_binding_0) => crate::Item::Type(f.fold_item_type(_binding_0)),
- crate::Item::Union(_binding_0) => {
- crate::Item::Union(f.fold_item_union(_binding_0))
- }
- crate::Item::Use(_binding_0) => crate::Item::Use(f.fold_item_use(_binding_0)),
- crate::Item::Verbatim(_binding_0) => {
- crate::Item::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_const<F>(f: &mut F, node: crate::ItemConst) -> crate::ItemConst
-where
- F: Fold + ?Sized,
-{
- crate::ItemConst {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_enum<F>(f: &mut F, node: crate::ItemEnum) -> crate::ItemEnum
-where
- F: Fold + ?Sized,
-{
- crate::ItemEnum {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- enum_token: node.enum_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- brace_token: node.brace_token,
- variants: crate::punctuated::fold(node.variants, f, F::fold_variant),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_extern_crate<F>(
- f: &mut F,
- node: crate::ItemExternCrate,
-) -> crate::ItemExternCrate
-where
- F: Fold + ?Sized,
-{
- crate::ItemExternCrate {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- extern_token: node.extern_token,
- crate_token: node.crate_token,
- ident: f.fold_ident(node.ident),
- rename: (node.rename).map(|it| ((it).0, f.fold_ident((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_fn<F>(f: &mut F, node: crate::ItemFn) -> crate::ItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- sig: f.fold_signature(node.sig),
- block: Box::new(f.fold_block(*node.block)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_foreign_mod<F>(
- f: &mut F,
- node: crate::ItemForeignMod,
-) -> crate::ItemForeignMod
-where
- F: Fold + ?Sized,
-{
- crate::ItemForeignMod {
- attrs: f.fold_attributes(node.attrs),
- unsafety: node.unsafety,
- abi: f.fold_abi(node.abi),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_foreign_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_impl<F>(f: &mut F, node: crate::ItemImpl) -> crate::ItemImpl
-where
- F: Fold + ?Sized,
-{
- crate::ItemImpl {
- attrs: f.fold_attributes(node.attrs),
- defaultness: node.defaultness,
- unsafety: node.unsafety,
- impl_token: node.impl_token,
- generics: f.fold_generics(node.generics),
- trait_: (node.trait_).map(|it| ((it).0, f.fold_path((it).1), (it).2)),
- self_ty: Box::new(f.fold_type(*node.self_ty)),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_impl_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_macro<F>(f: &mut F, node: crate::ItemMacro) -> crate::ItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ItemMacro {
- attrs: f.fold_attributes(node.attrs),
- ident: (node.ident).map(|it| f.fold_ident(it)),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_mod<F>(f: &mut F, node: crate::ItemMod) -> crate::ItemMod
-where
- F: Fold + ?Sized,
-{
- crate::ItemMod {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- unsafety: node.unsafety,
- mod_token: node.mod_token,
- ident: f.fold_ident(node.ident),
- content: (node.content).map(|it| ((it).0, fold_vec((it).1, f, F::fold_item))),
- semi: node.semi,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_static<F>(f: &mut F, node: crate::ItemStatic) -> crate::ItemStatic
-where
- F: Fold + ?Sized,
-{
- crate::ItemStatic {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- static_token: node.static_token,
- mutability: f.fold_static_mutability(node.mutability),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_struct<F>(f: &mut F, node: crate::ItemStruct) -> crate::ItemStruct
-where
- F: Fold + ?Sized,
-{
- crate::ItemStruct {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- struct_token: node.struct_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- fields: f.fold_fields(node.fields),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_trait<F>(f: &mut F, node: crate::ItemTrait) -> crate::ItemTrait
-where
- F: Fold + ?Sized,
-{
- crate::ItemTrait {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- unsafety: node.unsafety,
- auto_token: node.auto_token,
- restriction: (node.restriction).map(|it| f.fold_impl_restriction(it)),
- trait_token: node.trait_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- supertraits: crate::punctuated::fold(
- node.supertraits,
- f,
- F::fold_type_param_bound,
- ),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_trait_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_trait_alias<F>(
- f: &mut F,
- node: crate::ItemTraitAlias,
-) -> crate::ItemTraitAlias
-where
- F: Fold + ?Sized,
-{
- crate::ItemTraitAlias {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- trait_token: node.trait_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_type<F>(f: &mut F, node: crate::ItemType) -> crate::ItemType
-where
- F: Fold + ?Sized,
-{
- crate::ItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- ty: Box::new(f.fold_type(*node.ty)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_union<F>(f: &mut F, node: crate::ItemUnion) -> crate::ItemUnion
-where
- F: Fold + ?Sized,
-{
- crate::ItemUnion {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- union_token: node.union_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- fields: f.fold_fields_named(node.fields),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_use<F>(f: &mut F, node: crate::ItemUse) -> crate::ItemUse
-where
- F: Fold + ?Sized,
-{
- crate::ItemUse {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- use_token: node.use_token,
- leading_colon: node.leading_colon,
- tree: f.fold_use_tree(node.tree),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_label<F>(f: &mut F, node: crate::Label) -> crate::Label
-where
- F: Fold + ?Sized,
-{
- crate::Label {
- name: f.fold_lifetime(node.name),
- colon_token: node.colon_token,
- }
-}
-pub fn fold_lifetime<F>(f: &mut F, node: crate::Lifetime) -> crate::Lifetime
-where
- F: Fold + ?Sized,
-{
- crate::Lifetime {
- apostrophe: f.fold_span(node.apostrophe),
- ident: f.fold_ident(node.ident),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_lifetime_param<F>(
- f: &mut F,
- node: crate::LifetimeParam,
-) -> crate::LifetimeParam
-where
- F: Fold + ?Sized,
-{
- crate::LifetimeParam {
- attrs: f.fold_attributes(node.attrs),
- lifetime: f.fold_lifetime(node.lifetime),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_lifetime),
- }
-}
-pub fn fold_lit<F>(f: &mut F, node: crate::Lit) -> crate::Lit
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Lit::Str(_binding_0) => crate::Lit::Str(f.fold_lit_str(_binding_0)),
- crate::Lit::ByteStr(_binding_0) => {
- crate::Lit::ByteStr(f.fold_lit_byte_str(_binding_0))
- }
- crate::Lit::CStr(_binding_0) => crate::Lit::CStr(f.fold_lit_cstr(_binding_0)),
- crate::Lit::Byte(_binding_0) => crate::Lit::Byte(f.fold_lit_byte(_binding_0)),
- crate::Lit::Char(_binding_0) => crate::Lit::Char(f.fold_lit_char(_binding_0)),
- crate::Lit::Int(_binding_0) => crate::Lit::Int(f.fold_lit_int(_binding_0)),
- crate::Lit::Float(_binding_0) => crate::Lit::Float(f.fold_lit_float(_binding_0)),
- crate::Lit::Bool(_binding_0) => crate::Lit::Bool(f.fold_lit_bool(_binding_0)),
- crate::Lit::Verbatim(_binding_0) => crate::Lit::Verbatim(_binding_0),
- }
-}
-pub fn fold_lit_bool<F>(f: &mut F, node: crate::LitBool) -> crate::LitBool
-where
- F: Fold + ?Sized,
-{
- crate::LitBool {
- value: node.value,
- span: f.fold_span(node.span),
- }
-}
-pub fn fold_lit_byte<F>(f: &mut F, node: crate::LitByte) -> crate::LitByte
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_byte_str<F>(f: &mut F, node: crate::LitByteStr) -> crate::LitByteStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_cstr<F>(f: &mut F, node: crate::LitCStr) -> crate::LitCStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_char<F>(f: &mut F, node: crate::LitChar) -> crate::LitChar
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_float<F>(f: &mut F, node: crate::LitFloat) -> crate::LitFloat
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_int<F>(f: &mut F, node: crate::LitInt) -> crate::LitInt
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_str<F>(f: &mut F, node: crate::LitStr) -> crate::LitStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_local<F>(f: &mut F, node: crate::Local) -> crate::Local
-where
- F: Fold + ?Sized,
-{
- crate::Local {
- attrs: f.fold_attributes(node.attrs),
- let_token: node.let_token,
- pat: f.fold_pat(node.pat),
- init: (node.init).map(|it| f.fold_local_init(it)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_local_init<F>(f: &mut F, node: crate::LocalInit) -> crate::LocalInit
-where
- F: Fold + ?Sized,
-{
- crate::LocalInit {
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- diverge: (node.diverge).map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_macro<F>(f: &mut F, node: crate::Macro) -> crate::Macro
-where
- F: Fold + ?Sized,
-{
- crate::Macro {
- path: f.fold_path(node.path),
- bang_token: node.bang_token,
- delimiter: f.fold_macro_delimiter(node.delimiter),
- tokens: f.fold_token_stream(node.tokens),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_macro_delimiter<F>(
- f: &mut F,
- node: crate::MacroDelimiter,
-) -> crate::MacroDelimiter
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::MacroDelimiter::Paren(_binding_0) => {
- crate::MacroDelimiter::Paren(_binding_0)
- }
- crate::MacroDelimiter::Brace(_binding_0) => {
- crate::MacroDelimiter::Brace(_binding_0)
- }
- crate::MacroDelimiter::Bracket(_binding_0) => {
- crate::MacroDelimiter::Bracket(_binding_0)
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_member<F>(f: &mut F, node: crate::Member) -> crate::Member
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Member::Named(_binding_0) => {
- crate::Member::Named(f.fold_ident(_binding_0))
- }
- crate::Member::Unnamed(_binding_0) => {
- crate::Member::Unnamed(f.fold_index(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta<F>(f: &mut F, node: crate::Meta) -> crate::Meta
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Meta::Path(_binding_0) => crate::Meta::Path(f.fold_path(_binding_0)),
- crate::Meta::List(_binding_0) => crate::Meta::List(f.fold_meta_list(_binding_0)),
- crate::Meta::NameValue(_binding_0) => {
- crate::Meta::NameValue(f.fold_meta_name_value(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta_list<F>(f: &mut F, node: crate::MetaList) -> crate::MetaList
-where
- F: Fold + ?Sized,
-{
- crate::MetaList {
- path: f.fold_path(node.path),
- delimiter: f.fold_macro_delimiter(node.delimiter),
- tokens: f.fold_token_stream(node.tokens),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta_name_value<F>(
- f: &mut F,
- node: crate::MetaNameValue,
-) -> crate::MetaNameValue
-where
- F: Fold + ?Sized,
-{
- crate::MetaNameValue {
- path: f.fold_path(node.path),
- eq_token: node.eq_token,
- value: f.fold_expr(node.value),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_parenthesized_generic_arguments<F>(
- f: &mut F,
- node: crate::ParenthesizedGenericArguments,
-) -> crate::ParenthesizedGenericArguments
-where
- F: Fold + ?Sized,
-{
- crate::ParenthesizedGenericArguments {
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_type),
- output: f.fold_return_type(node.output),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat<F>(f: &mut F, node: crate::Pat) -> crate::Pat
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Pat::Const(_binding_0) => crate::Pat::Const(f.fold_expr_const(_binding_0)),
- crate::Pat::Ident(_binding_0) => crate::Pat::Ident(f.fold_pat_ident(_binding_0)),
- crate::Pat::Lit(_binding_0) => crate::Pat::Lit(f.fold_expr_lit(_binding_0)),
- crate::Pat::Macro(_binding_0) => crate::Pat::Macro(f.fold_expr_macro(_binding_0)),
- crate::Pat::Or(_binding_0) => crate::Pat::Or(f.fold_pat_or(_binding_0)),
- crate::Pat::Paren(_binding_0) => crate::Pat::Paren(f.fold_pat_paren(_binding_0)),
- crate::Pat::Path(_binding_0) => crate::Pat::Path(f.fold_expr_path(_binding_0)),
- crate::Pat::Range(_binding_0) => crate::Pat::Range(f.fold_expr_range(_binding_0)),
- crate::Pat::Reference(_binding_0) => {
- crate::Pat::Reference(f.fold_pat_reference(_binding_0))
- }
- crate::Pat::Rest(_binding_0) => crate::Pat::Rest(f.fold_pat_rest(_binding_0)),
- crate::Pat::Slice(_binding_0) => crate::Pat::Slice(f.fold_pat_slice(_binding_0)),
- crate::Pat::Struct(_binding_0) => {
- crate::Pat::Struct(f.fold_pat_struct(_binding_0))
- }
- crate::Pat::Tuple(_binding_0) => crate::Pat::Tuple(f.fold_pat_tuple(_binding_0)),
- crate::Pat::TupleStruct(_binding_0) => {
- crate::Pat::TupleStruct(f.fold_pat_tuple_struct(_binding_0))
- }
- crate::Pat::Type(_binding_0) => crate::Pat::Type(f.fold_pat_type(_binding_0)),
- crate::Pat::Verbatim(_binding_0) => {
- crate::Pat::Verbatim(f.fold_token_stream(_binding_0))
- }
- crate::Pat::Wild(_binding_0) => crate::Pat::Wild(f.fold_pat_wild(_binding_0)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_ident<F>(f: &mut F, node: crate::PatIdent) -> crate::PatIdent
-where
- F: Fold + ?Sized,
-{
- crate::PatIdent {
- attrs: f.fold_attributes(node.attrs),
- by_ref: node.by_ref,
- mutability: node.mutability,
- ident: f.fold_ident(node.ident),
- subpat: (node.subpat).map(|it| ((it).0, Box::new(f.fold_pat(*(it).1)))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_or<F>(f: &mut F, node: crate::PatOr) -> crate::PatOr
-where
- F: Fold + ?Sized,
-{
- crate::PatOr {
- attrs: f.fold_attributes(node.attrs),
- leading_vert: node.leading_vert,
- cases: crate::punctuated::fold(node.cases, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_paren<F>(f: &mut F, node: crate::PatParen) -> crate::PatParen
-where
- F: Fold + ?Sized,
-{
- crate::PatParen {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_reference<F>(f: &mut F, node: crate::PatReference) -> crate::PatReference
-where
- F: Fold + ?Sized,
-{
- crate::PatReference {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- mutability: node.mutability,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_rest<F>(f: &mut F, node: crate::PatRest) -> crate::PatRest
-where
- F: Fold + ?Sized,
-{
- crate::PatRest {
- attrs: f.fold_attributes(node.attrs),
- dot2_token: node.dot2_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_slice<F>(f: &mut F, node: crate::PatSlice) -> crate::PatSlice
-where
- F: Fold + ?Sized,
-{
- crate::PatSlice {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_struct<F>(f: &mut F, node: crate::PatStruct) -> crate::PatStruct
-where
- F: Fold + ?Sized,
-{
- crate::PatStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- brace_token: node.brace_token,
- fields: crate::punctuated::fold(node.fields, f, F::fold_field_pat),
- rest: (node.rest).map(|it| f.fold_pat_rest(it)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_tuple<F>(f: &mut F, node: crate::PatTuple) -> crate::PatTuple
-where
- F: Fold + ?Sized,
-{
- crate::PatTuple {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_tuple_struct<F>(
- f: &mut F,
- node: crate::PatTupleStruct,
-) -> crate::PatTupleStruct
-where
- F: Fold + ?Sized,
-{
- crate::PatTupleStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_type<F>(f: &mut F, node: crate::PatType) -> crate::PatType
-where
- F: Fold + ?Sized,
-{
- crate::PatType {
- attrs: f.fold_attributes(node.attrs),
- pat: Box::new(f.fold_pat(*node.pat)),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_wild<F>(f: &mut F, node: crate::PatWild) -> crate::PatWild
-where
- F: Fold + ?Sized,
-{
- crate::PatWild {
- attrs: f.fold_attributes(node.attrs),
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path<F>(f: &mut F, node: crate::Path) -> crate::Path
-where
- F: Fold + ?Sized,
-{
- crate::Path {
- leading_colon: node.leading_colon,
- segments: crate::punctuated::fold(node.segments, f, F::fold_path_segment),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path_arguments<F>(
- f: &mut F,
- node: crate::PathArguments,
-) -> crate::PathArguments
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::PathArguments::None => crate::PathArguments::None,
- crate::PathArguments::AngleBracketed(_binding_0) => {
- crate::PathArguments::AngleBracketed(
- f.fold_angle_bracketed_generic_arguments(_binding_0),
- )
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- crate::PathArguments::Parenthesized(
- f.fold_parenthesized_generic_arguments(_binding_0),
- )
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path_segment<F>(f: &mut F, node: crate::PathSegment) -> crate::PathSegment
-where
- F: Fold + ?Sized,
-{
- crate::PathSegment {
- ident: f.fold_ident(node.ident),
- arguments: f.fold_path_arguments(node.arguments),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pointer_mutability<F>(
- f: &mut F,
- node: crate::PointerMutability,
-) -> crate::PointerMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::PointerMutability::Const(_binding_0) => {
- crate::PointerMutability::Const(_binding_0)
- }
- crate::PointerMutability::Mut(_binding_0) => {
- crate::PointerMutability::Mut(_binding_0)
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_precise_capture<F>(
- f: &mut F,
- node: crate::PreciseCapture,
-) -> crate::PreciseCapture
-where
- F: Fold + ?Sized,
-{
- crate::PreciseCapture {
- use_token: node.use_token,
- lt_token: node.lt_token,
- params: crate::punctuated::fold(node.params, f, F::fold_captured_param),
- gt_token: node.gt_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_predicate_lifetime<F>(
- f: &mut F,
- node: crate::PredicateLifetime,
-) -> crate::PredicateLifetime
-where
- F: Fold + ?Sized,
-{
- crate::PredicateLifetime {
- lifetime: f.fold_lifetime(node.lifetime),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_lifetime),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_predicate_type<F>(
- f: &mut F,
- node: crate::PredicateType,
-) -> crate::PredicateType
-where
- F: Fold + ?Sized,
-{
- crate::PredicateType {
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- bounded_ty: f.fold_type(node.bounded_ty),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_qself<F>(f: &mut F, node: crate::QSelf) -> crate::QSelf
-where
- F: Fold + ?Sized,
-{
- crate::QSelf {
- lt_token: node.lt_token,
- ty: Box::new(f.fold_type(*node.ty)),
- position: node.position,
- as_token: node.as_token,
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_range_limits<F>(f: &mut F, node: crate::RangeLimits) -> crate::RangeLimits
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::RangeLimits::HalfOpen(_binding_0) => {
- crate::RangeLimits::HalfOpen(_binding_0)
- }
- crate::RangeLimits::Closed(_binding_0) => crate::RangeLimits::Closed(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_receiver<F>(f: &mut F, node: crate::Receiver) -> crate::Receiver
-where
- F: Fold + ?Sized,
-{
- crate::Receiver {
- attrs: f.fold_attributes(node.attrs),
- reference: (node.reference)
- .map(|it| ((it).0, ((it).1).map(|it| f.fold_lifetime(it)))),
- mutability: node.mutability,
- self_token: node.self_token,
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_return_type<F>(f: &mut F, node: crate::ReturnType) -> crate::ReturnType
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ReturnType::Default => crate::ReturnType::Default,
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- crate::ReturnType::Type(_binding_0, Box::new(f.fold_type(*_binding_1)))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_signature<F>(f: &mut F, node: crate::Signature) -> crate::Signature
-where
- F: Fold + ?Sized,
-{
- crate::Signature {
- constness: node.constness,
- asyncness: node.asyncness,
- unsafety: node.unsafety,
- abi: (node.abi).map(|it| f.fold_abi(it)),
- fn_token: node.fn_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_fn_arg),
- variadic: (node.variadic).map(|it| f.fold_variadic(it)),
- output: f.fold_return_type(node.output),
- }
-}
-pub fn fold_span<F>(f: &mut F, node: proc_macro2::Span) -> proc_macro2::Span
-where
- F: Fold + ?Sized,
-{
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_static_mutability<F>(
- f: &mut F,
- node: crate::StaticMutability,
-) -> crate::StaticMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::StaticMutability::Mut(_binding_0) => {
- crate::StaticMutability::Mut(_binding_0)
- }
- crate::StaticMutability::None => crate::StaticMutability::None,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_stmt<F>(f: &mut F, node: crate::Stmt) -> crate::Stmt
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Stmt::Local(_binding_0) => crate::Stmt::Local(f.fold_local(_binding_0)),
- crate::Stmt::Item(_binding_0) => crate::Stmt::Item(f.fold_item(_binding_0)),
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- crate::Stmt::Expr(f.fold_expr(_binding_0), _binding_1)
- }
- crate::Stmt::Macro(_binding_0) => {
- crate::Stmt::Macro(f.fold_stmt_macro(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_stmt_macro<F>(f: &mut F, node: crate::StmtMacro) -> crate::StmtMacro
-where
- F: Fold + ?Sized,
-{
- crate::StmtMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_trait_bound<F>(f: &mut F, node: crate::TraitBound) -> crate::TraitBound
-where
- F: Fold + ?Sized,
-{
- crate::TraitBound {
- paren_token: node.paren_token,
- modifier: f.fold_trait_bound_modifier(node.modifier),
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_trait_bound_modifier<F>(
- f: &mut F,
- node: crate::TraitBoundModifier,
-) -> crate::TraitBoundModifier
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TraitBoundModifier::None => crate::TraitBoundModifier::None,
- crate::TraitBoundModifier::Maybe(_binding_0) => {
- crate::TraitBoundModifier::Maybe(_binding_0)
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item<F>(f: &mut F, node: crate::TraitItem) -> crate::TraitItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TraitItem::Const(_binding_0) => {
- crate::TraitItem::Const(f.fold_trait_item_const(_binding_0))
- }
- crate::TraitItem::Fn(_binding_0) => {
- crate::TraitItem::Fn(f.fold_trait_item_fn(_binding_0))
- }
- crate::TraitItem::Type(_binding_0) => {
- crate::TraitItem::Type(f.fold_trait_item_type(_binding_0))
- }
- crate::TraitItem::Macro(_binding_0) => {
- crate::TraitItem::Macro(f.fold_trait_item_macro(_binding_0))
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- crate::TraitItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_const<F>(
- f: &mut F,
- node: crate::TraitItemConst,
-) -> crate::TraitItemConst
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemConst {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- default: (node.default).map(|it| ((it).0, f.fold_expr((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_fn<F>(f: &mut F, node: crate::TraitItemFn) -> crate::TraitItemFn
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemFn {
- attrs: f.fold_attributes(node.attrs),
- sig: f.fold_signature(node.sig),
- default: (node.default).map(|it| f.fold_block(it)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_macro<F>(
- f: &mut F,
- node: crate::TraitItemMacro,
-) -> crate::TraitItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_type<F>(
- f: &mut F,
- node: crate::TraitItemType,
-) -> crate::TraitItemType
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemType {
- attrs: f.fold_attributes(node.attrs),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- default: (node.default).map(|it| ((it).0, f.fold_type((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type<F>(f: &mut F, node: crate::Type) -> crate::Type
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Type::Array(_binding_0) => {
- crate::Type::Array(f.fold_type_array(_binding_0))
- }
- crate::Type::BareFn(_binding_0) => {
- crate::Type::BareFn(f.fold_type_bare_fn(_binding_0))
- }
- crate::Type::Group(_binding_0) => {
- crate::Type::Group(f.fold_type_group(_binding_0))
- }
- crate::Type::ImplTrait(_binding_0) => {
- crate::Type::ImplTrait(f.fold_type_impl_trait(_binding_0))
- }
- crate::Type::Infer(_binding_0) => {
- crate::Type::Infer(f.fold_type_infer(_binding_0))
- }
- crate::Type::Macro(_binding_0) => {
- crate::Type::Macro(f.fold_type_macro(_binding_0))
- }
- crate::Type::Never(_binding_0) => {
- crate::Type::Never(f.fold_type_never(_binding_0))
- }
- crate::Type::Paren(_binding_0) => {
- crate::Type::Paren(f.fold_type_paren(_binding_0))
- }
- crate::Type::Path(_binding_0) => crate::Type::Path(f.fold_type_path(_binding_0)),
- crate::Type::Ptr(_binding_0) => crate::Type::Ptr(f.fold_type_ptr(_binding_0)),
- crate::Type::Reference(_binding_0) => {
- crate::Type::Reference(f.fold_type_reference(_binding_0))
- }
- crate::Type::Slice(_binding_0) => {
- crate::Type::Slice(f.fold_type_slice(_binding_0))
- }
- crate::Type::TraitObject(_binding_0) => {
- crate::Type::TraitObject(f.fold_type_trait_object(_binding_0))
- }
- crate::Type::Tuple(_binding_0) => {
- crate::Type::Tuple(f.fold_type_tuple(_binding_0))
- }
- crate::Type::Verbatim(_binding_0) => {
- crate::Type::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_array<F>(f: &mut F, node: crate::TypeArray) -> crate::TypeArray
-where
- F: Fold + ?Sized,
-{
- crate::TypeArray {
- bracket_token: node.bracket_token,
- elem: Box::new(f.fold_type(*node.elem)),
- semi_token: node.semi_token,
- len: f.fold_expr(node.len),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_bare_fn<F>(f: &mut F, node: crate::TypeBareFn) -> crate::TypeBareFn
-where
- F: Fold + ?Sized,
-{
- crate::TypeBareFn {
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- unsafety: node.unsafety,
- abi: (node.abi).map(|it| f.fold_abi(it)),
- fn_token: node.fn_token,
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_bare_fn_arg),
- variadic: (node.variadic).map(|it| f.fold_bare_variadic(it)),
- output: f.fold_return_type(node.output),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_group<F>(f: &mut F, node: crate::TypeGroup) -> crate::TypeGroup
-where
- F: Fold + ?Sized,
-{
- crate::TypeGroup {
- group_token: node.group_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_impl_trait<F>(
- f: &mut F,
- node: crate::TypeImplTrait,
-) -> crate::TypeImplTrait
-where
- F: Fold + ?Sized,
-{
- crate::TypeImplTrait {
- impl_token: node.impl_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_infer<F>(f: &mut F, node: crate::TypeInfer) -> crate::TypeInfer
-where
- F: Fold + ?Sized,
-{
- crate::TypeInfer {
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_macro<F>(f: &mut F, node: crate::TypeMacro) -> crate::TypeMacro
-where
- F: Fold + ?Sized,
-{
- crate::TypeMacro {
- mac: f.fold_macro(node.mac),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_never<F>(f: &mut F, node: crate::TypeNever) -> crate::TypeNever
-where
- F: Fold + ?Sized,
-{
- crate::TypeNever {
- bang_token: node.bang_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_param<F>(f: &mut F, node: crate::TypeParam) -> crate::TypeParam
-where
- F: Fold + ?Sized,
-{
- crate::TypeParam {
- attrs: f.fold_attributes(node.attrs),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- eq_token: node.eq_token,
- default: (node.default).map(|it| f.fold_type(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_param_bound<F>(
- f: &mut F,
- node: crate::TypeParamBound,
-) -> crate::TypeParamBound
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- crate::TypeParamBound::Trait(f.fold_trait_bound(_binding_0))
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- crate::TypeParamBound::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- crate::TypeParamBound::PreciseCapture(
- full!(f.fold_precise_capture(_binding_0)),
- )
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- crate::TypeParamBound::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_paren<F>(f: &mut F, node: crate::TypeParen) -> crate::TypeParen
-where
- F: Fold + ?Sized,
-{
- crate::TypeParen {
- paren_token: node.paren_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_path<F>(f: &mut F, node: crate::TypePath) -> crate::TypePath
-where
- F: Fold + ?Sized,
-{
- crate::TypePath {
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_ptr<F>(f: &mut F, node: crate::TypePtr) -> crate::TypePtr
-where
- F: Fold + ?Sized,
-{
- crate::TypePtr {
- star_token: node.star_token,
- const_token: node.const_token,
- mutability: node.mutability,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_reference<F>(
- f: &mut F,
- node: crate::TypeReference,
-) -> crate::TypeReference
-where
- F: Fold + ?Sized,
-{
- crate::TypeReference {
- and_token: node.and_token,
- lifetime: (node.lifetime).map(|it| f.fold_lifetime(it)),
- mutability: node.mutability,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_slice<F>(f: &mut F, node: crate::TypeSlice) -> crate::TypeSlice
-where
- F: Fold + ?Sized,
-{
- crate::TypeSlice {
- bracket_token: node.bracket_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_trait_object<F>(
- f: &mut F,
- node: crate::TypeTraitObject,
-) -> crate::TypeTraitObject
-where
- F: Fold + ?Sized,
-{
- crate::TypeTraitObject {
- dyn_token: node.dyn_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_tuple<F>(f: &mut F, node: crate::TypeTuple) -> crate::TypeTuple
-where
- F: Fold + ?Sized,
-{
- crate::TypeTuple {
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_type),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_un_op<F>(f: &mut F, node: crate::UnOp) -> crate::UnOp
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::UnOp::Deref(_binding_0) => crate::UnOp::Deref(_binding_0),
- crate::UnOp::Not(_binding_0) => crate::UnOp::Not(_binding_0),
- crate::UnOp::Neg(_binding_0) => crate::UnOp::Neg(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_glob<F>(f: &mut F, node: crate::UseGlob) -> crate::UseGlob
-where
- F: Fold + ?Sized,
-{
- crate::UseGlob {
- star_token: node.star_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_group<F>(f: &mut F, node: crate::UseGroup) -> crate::UseGroup
-where
- F: Fold + ?Sized,
-{
- crate::UseGroup {
- brace_token: node.brace_token,
- items: crate::punctuated::fold(node.items, f, F::fold_use_tree),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_name<F>(f: &mut F, node: crate::UseName) -> crate::UseName
-where
- F: Fold + ?Sized,
-{
- crate::UseName {
- ident: f.fold_ident(node.ident),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_path<F>(f: &mut F, node: crate::UsePath) -> crate::UsePath
-where
- F: Fold + ?Sized,
-{
- crate::UsePath {
- ident: f.fold_ident(node.ident),
- colon2_token: node.colon2_token,
- tree: Box::new(f.fold_use_tree(*node.tree)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_rename<F>(f: &mut F, node: crate::UseRename) -> crate::UseRename
-where
- F: Fold + ?Sized,
-{
- crate::UseRename {
- ident: f.fold_ident(node.ident),
- as_token: node.as_token,
- rename: f.fold_ident(node.rename),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_tree<F>(f: &mut F, node: crate::UseTree) -> crate::UseTree
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::UseTree::Path(_binding_0) => {
- crate::UseTree::Path(f.fold_use_path(_binding_0))
- }
- crate::UseTree::Name(_binding_0) => {
- crate::UseTree::Name(f.fold_use_name(_binding_0))
- }
- crate::UseTree::Rename(_binding_0) => {
- crate::UseTree::Rename(f.fold_use_rename(_binding_0))
- }
- crate::UseTree::Glob(_binding_0) => {
- crate::UseTree::Glob(f.fold_use_glob(_binding_0))
- }
- crate::UseTree::Group(_binding_0) => {
- crate::UseTree::Group(f.fold_use_group(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_variadic<F>(f: &mut F, node: crate::Variadic) -> crate::Variadic
-where
- F: Fold + ?Sized,
-{
- crate::Variadic {
- attrs: f.fold_attributes(node.attrs),
- pat: (node.pat).map(|it| (Box::new(f.fold_pat(*(it).0)), (it).1)),
- dots: node.dots,
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_variant<F>(f: &mut F, node: crate::Variant) -> crate::Variant
-where
- F: Fold + ?Sized,
-{
- crate::Variant {
- attrs: f.fold_attributes(node.attrs),
- ident: f.fold_ident(node.ident),
- fields: f.fold_fields(node.fields),
- discriminant: (node.discriminant).map(|it| ((it).0, f.fold_expr((it).1))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_vis_restricted<F>(
- f: &mut F,
- node: crate::VisRestricted,
-) -> crate::VisRestricted
-where
- F: Fold + ?Sized,
-{
- crate::VisRestricted {
- pub_token: node.pub_token,
- paren_token: node.paren_token,
- in_token: node.in_token,
- path: Box::new(f.fold_path(*node.path)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_visibility<F>(f: &mut F, node: crate::Visibility) -> crate::Visibility
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Visibility::Public(_binding_0) => crate::Visibility::Public(_binding_0),
- crate::Visibility::Restricted(_binding_0) => {
- crate::Visibility::Restricted(f.fold_vis_restricted(_binding_0))
- }
- crate::Visibility::Inherited => crate::Visibility::Inherited,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_where_clause<F>(f: &mut F, node: crate::WhereClause) -> crate::WhereClause
-where
- F: Fold + ?Sized,
-{
- crate::WhereClause {
- where_token: node.where_token,
- predicates: crate::punctuated::fold(node.predicates, f, F::fold_where_predicate),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_where_predicate<F>(
- f: &mut F,
- node: crate::WherePredicate,
-) -> crate::WherePredicate
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- crate::WherePredicate::Lifetime(f.fold_predicate_lifetime(_binding_0))
- }
- crate::WherePredicate::Type(_binding_0) => {
- crate::WherePredicate::Type(f.fold_predicate_type(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-fn fold_vec<T, V, F>(vec: Vec<T>, fold: &mut V, mut f: F) -> Vec<T>
-where
- V: ?Sized,
- F: FnMut(&mut V, T) -> T,
-{
- vec.into_iter().map(|it| f(fold, it)).collect()
-}
diff --git a/vendor/syn/src/gen/hash.rs b/vendor/syn/src/gen/hash.rs
deleted file mode 100644
index 04f23453..00000000
--- a/vendor/syn/src/gen/hash.rs
+++ /dev/null
@@ -1,2876 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#[cfg(any(feature = "derive", feature = "full"))]
-use crate::tt::TokenStreamHelper;
-use std::hash::{Hash, Hasher};
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Abi {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.name.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AngleBracketedGenericArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.colon2_token.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Arm {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.guard.hash(state);
- self.body.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AssocConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.value.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AssocType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AttrStyle {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::AttrStyle::Outer => {
- state.write_u8(0u8);
- }
- crate::AttrStyle::Inner(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Attribute {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.style.hash(state);
- self.meta.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BareFnArg {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.name.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BareVariadic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.name.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BinOp {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::BinOp::Add(_) => {
- state.write_u8(0u8);
- }
- crate::BinOp::Sub(_) => {
- state.write_u8(1u8);
- }
- crate::BinOp::Mul(_) => {
- state.write_u8(2u8);
- }
- crate::BinOp::Div(_) => {
- state.write_u8(3u8);
- }
- crate::BinOp::Rem(_) => {
- state.write_u8(4u8);
- }
- crate::BinOp::And(_) => {
- state.write_u8(5u8);
- }
- crate::BinOp::Or(_) => {
- state.write_u8(6u8);
- }
- crate::BinOp::BitXor(_) => {
- state.write_u8(7u8);
- }
- crate::BinOp::BitAnd(_) => {
- state.write_u8(8u8);
- }
- crate::BinOp::BitOr(_) => {
- state.write_u8(9u8);
- }
- crate::BinOp::Shl(_) => {
- state.write_u8(10u8);
- }
- crate::BinOp::Shr(_) => {
- state.write_u8(11u8);
- }
- crate::BinOp::Eq(_) => {
- state.write_u8(12u8);
- }
- crate::BinOp::Lt(_) => {
- state.write_u8(13u8);
- }
- crate::BinOp::Le(_) => {
- state.write_u8(14u8);
- }
- crate::BinOp::Ne(_) => {
- state.write_u8(15u8);
- }
- crate::BinOp::Ge(_) => {
- state.write_u8(16u8);
- }
- crate::BinOp::Gt(_) => {
- state.write_u8(17u8);
- }
- crate::BinOp::AddAssign(_) => {
- state.write_u8(18u8);
- }
- crate::BinOp::SubAssign(_) => {
- state.write_u8(19u8);
- }
- crate::BinOp::MulAssign(_) => {
- state.write_u8(20u8);
- }
- crate::BinOp::DivAssign(_) => {
- state.write_u8(21u8);
- }
- crate::BinOp::RemAssign(_) => {
- state.write_u8(22u8);
- }
- crate::BinOp::BitXorAssign(_) => {
- state.write_u8(23u8);
- }
- crate::BinOp::BitAndAssign(_) => {
- state.write_u8(24u8);
- }
- crate::BinOp::BitOrAssign(_) => {
- state.write_u8(25u8);
- }
- crate::BinOp::ShlAssign(_) => {
- state.write_u8(26u8);
- }
- crate::BinOp::ShrAssign(_) => {
- state.write_u8(27u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Block {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.stmts.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BoundLifetimes {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::CapturedParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::CapturedParam::Ident(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ConstParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- self.eq_token.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Constraint {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Data {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Data::Struct(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Data::Enum(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Data::Union(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataEnum {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.variants.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.fields.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataUnion {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.fields.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DeriveInput {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.data.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Expr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Expr::Binary(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Expr::Call(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Expr::Cast(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Expr::Field(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Expr::Group(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => {
- state.write_u8(15u8);
- v0.hash(state);
- }
- crate::Expr::Index(v0) => {
- state.write_u8(16u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => {
- state.write_u8(17u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => {
- state.write_u8(18u8);
- v0.hash(state);
- }
- crate::Expr::Lit(v0) => {
- state.write_u8(19u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => {
- state.write_u8(20u8);
- v0.hash(state);
- }
- crate::Expr::Macro(v0) => {
- state.write_u8(21u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => {
- state.write_u8(22u8);
- v0.hash(state);
- }
- crate::Expr::MethodCall(v0) => {
- state.write_u8(23u8);
- v0.hash(state);
- }
- crate::Expr::Paren(v0) => {
- state.write_u8(24u8);
- v0.hash(state);
- }
- crate::Expr::Path(v0) => {
- state.write_u8(25u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => {
- state.write_u8(26u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => {
- state.write_u8(27u8);
- v0.hash(state);
- }
- crate::Expr::Reference(v0) => {
- state.write_u8(28u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => {
- state.write_u8(29u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => {
- state.write_u8(30u8);
- v0.hash(state);
- }
- crate::Expr::Struct(v0) => {
- state.write_u8(31u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => {
- state.write_u8(32u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => {
- state.write_u8(33u8);
- v0.hash(state);
- }
- crate::Expr::Tuple(v0) => {
- state.write_u8(34u8);
- v0.hash(state);
- }
- crate::Expr::Unary(v0) => {
- state.write_u8(35u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => {
- state.write_u8(36u8);
- v0.hash(state);
- }
- crate::Expr::Verbatim(v0) => {
- state.write_u8(37u8);
- TokenStreamHelper(v0).hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => {
- state.write_u8(38u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => {
- state.write_u8(39u8);
- v0.hash(state);
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprArray {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAssign {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.left.hash(state);
- self.right.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAsync {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.capture.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAwait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.base.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBinary {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.left.hash(state);
- self.op.hash(state);
- self.right.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBlock {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBreak {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprCall {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.func.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprCast {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprClosure {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lifetimes.hash(state);
- self.constness.hash(state);
- self.movability.hash(state);
- self.asyncness.hash(state);
- self.capture.hash(state);
- self.inputs.hash(state);
- self.output.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprContinue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprField {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.base.hash(state);
- self.member.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprForLoop {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.pat.hash(state);
- self.expr.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprIf {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.cond.hash(state);
- self.then_branch.hash(state);
- self.else_branch.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprIndex {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.index.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprInfer {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLet {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lit.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLoop {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMatch {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.arms.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMethodCall {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.receiver.hash(state);
- self.method.hash(state);
- self.turbofish.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprPath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRange {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.start.hash(state);
- self.limits.hash(state);
- self.end.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRawAddr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRepeat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.len.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprReturn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.fields.hash(state);
- self.dot2_token.hash(state);
- self.rest.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTry {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTryBlock {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprUnary {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.op.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprUnsafe {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprWhile {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.cond.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprYield {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Field {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.colon_token.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::FieldMutability::None => {
- state.write_u8(0u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldPat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.member.hash(state);
- self.colon_token.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldValue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.member.hash(state);
- self.colon_token.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Fields {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Fields::Named(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Fields::Unnamed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Fields::Unit => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldsNamed {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.named.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldsUnnamed {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.unnamed.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::File {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.shebang.hash(state);
- self.attrs.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FnArg {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::FnArg::Receiver(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::FnArg::Typed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ForeignItem::Fn(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::ForeignItem::Static(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::ForeignItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::ForeignItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::ForeignItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.sig.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemStatic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::GenericArgument {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::GenericArgument::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::GenericArgument::Const(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::GenericArgument::AssocType(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::GenericArgument::AssocConst(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::GenericArgument::Constraint(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::GenericParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::GenericParam::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::GenericParam::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::GenericParam::Const(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Generics {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lt_token.hash(state);
- self.params.hash(state);
- self.gt_token.hash(state);
- self.where_clause.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ImplItem::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::ImplItem::Fn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::ImplItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::ImplItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::ImplItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.sig.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplRestriction {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {
- match *self {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Item {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Item::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Item::Enum(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Item::ExternCrate(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Item::Fn(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Item::ForeignMod(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Item::Impl(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Item::Macro(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Item::Mod(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Item::Static(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Item::Struct(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Item::Trait(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Item::TraitAlias(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Item::Type(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Item::Union(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Item::Use(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- crate::Item::Verbatim(v0) => {
- state.write_u8(15u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemEnum {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.variants.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemExternCrate {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.rename.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.sig.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemForeignMod {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemImpl {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.defaultness.hash(state);
- self.unsafety.hash(state);
- self.generics.hash(state);
- self.trait_.hash(state);
- self.self_ty.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemMod {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.unsafety.hash(state);
- self.ident.hash(state);
- self.content.hash(state);
- self.semi.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemStatic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.fields.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemTrait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.unsafety.hash(state);
- self.auto_token.hash(state);
- self.restriction.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.colon_token.hash(state);
- self.supertraits.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemTraitAlias {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemUnion {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.fields.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemUse {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.leading_colon.hash(state);
- self.tree.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Label {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.name.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LifetimeParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lifetime.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Lit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Lit::Str(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Lit::ByteStr(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Lit::CStr(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Lit::Byte(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Lit::Char(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Lit::Int(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Lit::Float(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Lit::Bool(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Lit::Verbatim(v0) => {
- state.write_u8(8u8);
- v0.to_string().hash(state);
- }
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LitBool {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.value.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Local {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.init.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LocalInit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.expr.hash(state);
- self.diverge.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Macro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.delimiter.hash(state);
- TokenStreamHelper(&self.tokens).hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MacroDelimiter {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::MacroDelimiter::Paren(_) => {
- state.write_u8(0u8);
- }
- crate::MacroDelimiter::Brace(_) => {
- state.write_u8(1u8);
- }
- crate::MacroDelimiter::Bracket(_) => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Meta {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Meta::Path(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Meta::List(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Meta::NameValue(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MetaList {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.delimiter.hash(state);
- TokenStreamHelper(&self.tokens).hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MetaNameValue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.value.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ParenthesizedGenericArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.inputs.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Pat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Pat::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Pat::Ident(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Pat::Lit(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Pat::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Pat::Or(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Pat::Paren(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Pat::Path(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Pat::Range(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Pat::Reference(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Pat::Rest(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Pat::Slice(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Pat::Struct(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Pat::Tuple(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Pat::TupleStruct(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Pat::Type(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- crate::Pat::Verbatim(v0) => {
- state.write_u8(15u8);
- TokenStreamHelper(v0).hash(state);
- }
- crate::Pat::Wild(v0) => {
- state.write_u8(16u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatIdent {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.by_ref.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.subpat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatOr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.leading_vert.hash(state);
- self.cases.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatRest {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatSlice {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.fields.hash(state);
- self.rest.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatTupleStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatWild {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Path {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.leading_colon.hash(state);
- self.segments.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PathArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::PathArguments::None => {
- state.write_u8(0u8);
- }
- crate::PathArguments::AngleBracketed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::PathArguments::Parenthesized(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PathSegment {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.arguments.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PointerMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::PointerMutability::Const(_) => {
- state.write_u8(0u8);
- }
- crate::PointerMutability::Mut(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PreciseCapture {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.params.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PredicateLifetime {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetime.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PredicateType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- self.bounded_ty.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::QSelf {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ty.hash(state);
- self.position.hash(state);
- self.as_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::RangeLimits {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::RangeLimits::HalfOpen(_) => {
- state.write_u8(0u8);
- }
- crate::RangeLimits::Closed(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Receiver {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.reference.hash(state);
- self.mutability.hash(state);
- self.colon_token.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ReturnType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ReturnType::Default => {
- state.write_u8(0u8);
- }
- crate::ReturnType::Type(_, v1) => {
- state.write_u8(1u8);
- v1.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Signature {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.constness.hash(state);
- self.asyncness.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.inputs.hash(state);
- self.variadic.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::StaticMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::StaticMutability::Mut(_) => {
- state.write_u8(0u8);
- }
- crate::StaticMutability::None => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Stmt {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Stmt::Local(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Stmt::Item(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Stmt::Expr(v0, v1) => {
- state.write_u8(2u8);
- v0.hash(state);
- v1.hash(state);
- }
- crate::Stmt::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::StmtMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitBound {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.paren_token.hash(state);
- self.modifier.hash(state);
- self.lifetimes.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitBoundModifier {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TraitBoundModifier::None => {
- state.write_u8(0u8);
- }
- crate::TraitBoundModifier::Maybe(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TraitItem::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::TraitItem::Fn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::TraitItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::TraitItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::TraitItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.sig.hash(state);
- self.default.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Type {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Type::Array(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Type::BareFn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Type::Group(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Type::ImplTrait(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Type::Infer(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Type::Macro(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Type::Never(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Type::Paren(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Type::Path(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Type::Ptr(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Type::Reference(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Type::Slice(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Type::TraitObject(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Type::Tuple(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Type::Verbatim(v0) => {
- state.write_u8(14u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeArray {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- self.len.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeBareFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.inputs.hash(state);
- self.variadic.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeImplTrait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeInfer {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.mac.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeNever {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- self.eq_token.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParamBound {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TypeParamBound::Trait(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::TypeParamBound::Lifetime(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::TypeParamBound::Verbatim(v0) => {
- state.write_u8(3u8);
- TokenStreamHelper(v0).hash(state);
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypePath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.qself.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypePtr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.const_token.hash(state);
- self.mutability.hash(state);
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetime.hash(state);
- self.mutability.hash(state);
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeSlice {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeTraitObject {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.dyn_token.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elems.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UnOp {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::UnOp::Deref(_) => {
- state.write_u8(0u8);
- }
- crate::UnOp::Not(_) => {
- state.write_u8(1u8);
- }
- crate::UnOp::Neg(_) => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseGlob {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseName {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UsePath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.tree.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseRename {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.rename.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseTree {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::UseTree::Path(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::UseTree::Name(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::UseTree::Rename(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::UseTree::Glob(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::UseTree::Group(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Variadic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Variant {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.fields.hash(state);
- self.discriminant.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::VisRestricted {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.in_token.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Visibility {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Visibility::Public(_) => {
- state.write_u8(0u8);
- }
- crate::Visibility::Restricted(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Visibility::Inherited => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::WhereClause {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.predicates.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::WherePredicate {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::WherePredicate::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
diff --git a/vendor/syn/src/gen/token.css b/vendor/syn/src/gen/token.css
deleted file mode 100644
index ed82ae15..00000000
--- a/vendor/syn/src/gen/token.css
+++ /dev/null
@@ -1,737 +0,0 @@
-a.struct[title="struct syn::token::Abstract"],
-a.struct[title="struct syn::token::And"],
-a.struct[title="struct syn::token::AndAnd"],
-a.struct[title="struct syn::token::AndEq"],
-a.struct[title="struct syn::token::As"],
-a.struct[title="struct syn::token::Async"],
-a.struct[title="struct syn::token::At"],
-a.struct[title="struct syn::token::Auto"],
-a.struct[title="struct syn::token::Await"],
-a.struct[title="struct syn::token::Become"],
-a.struct[title="struct syn::token::Box"],
-a.struct[title="struct syn::token::Break"],
-a.struct[title="struct syn::token::Caret"],
-a.struct[title="struct syn::token::CaretEq"],
-a.struct[title="struct syn::token::Colon"],
-a.struct[title="struct syn::token::Comma"],
-a.struct[title="struct syn::token::Const"],
-a.struct[title="struct syn::token::Continue"],
-a.struct[title="struct syn::token::Crate"],
-a.struct[title="struct syn::token::Default"],
-a.struct[title="struct syn::token::Do"],
-a.struct[title="struct syn::token::Dollar"],
-a.struct[title="struct syn::token::Dot"],
-a.struct[title="struct syn::token::DotDot"],
-a.struct[title="struct syn::token::DotDotDot"],
-a.struct[title="struct syn::token::DotDotEq"],
-a.struct[title="struct syn::token::Dyn"],
-a.struct[title="struct syn::token::Else"],
-a.struct[title="struct syn::token::Enum"],
-a.struct[title="struct syn::token::Eq"],
-a.struct[title="struct syn::token::EqEq"],
-a.struct[title="struct syn::token::Extern"],
-a.struct[title="struct syn::token::FatArrow"],
-a.struct[title="struct syn::token::Final"],
-a.struct[title="struct syn::token::Fn"],
-a.struct[title="struct syn::token::For"],
-a.struct[title="struct syn::token::Ge"],
-a.struct[title="struct syn::token::Gt"],
-a.struct[title="struct syn::token::If"],
-a.struct[title="struct syn::token::Impl"],
-a.struct[title="struct syn::token::In"],
-a.struct[title="struct syn::token::LArrow"],
-a.struct[title="struct syn::token::Le"],
-a.struct[title="struct syn::token::Let"],
-a.struct[title="struct syn::token::Loop"],
-a.struct[title="struct syn::token::Lt"],
-a.struct[title="struct syn::token::Macro"],
-a.struct[title="struct syn::token::Match"],
-a.struct[title="struct syn::token::Minus"],
-a.struct[title="struct syn::token::MinusEq"],
-a.struct[title="struct syn::token::Mod"],
-a.struct[title="struct syn::token::Move"],
-a.struct[title="struct syn::token::Mut"],
-a.struct[title="struct syn::token::Ne"],
-a.struct[title="struct syn::token::Not"],
-a.struct[title="struct syn::token::Or"],
-a.struct[title="struct syn::token::OrEq"],
-a.struct[title="struct syn::token::OrOr"],
-a.struct[title="struct syn::token::Override"],
-a.struct[title="struct syn::token::PathSep"],
-a.struct[title="struct syn::token::Percent"],
-a.struct[title="struct syn::token::PercentEq"],
-a.struct[title="struct syn::token::Plus"],
-a.struct[title="struct syn::token::PlusEq"],
-a.struct[title="struct syn::token::Pound"],
-a.struct[title="struct syn::token::Priv"],
-a.struct[title="struct syn::token::Pub"],
-a.struct[title="struct syn::token::Question"],
-a.struct[title="struct syn::token::RArrow"],
-a.struct[title="struct syn::token::Raw"],
-a.struct[title="struct syn::token::Ref"],
-a.struct[title="struct syn::token::Return"],
-a.struct[title="struct syn::token::SelfType"],
-a.struct[title="struct syn::token::SelfValue"],
-a.struct[title="struct syn::token::Semi"],
-a.struct[title="struct syn::token::Shl"],
-a.struct[title="struct syn::token::ShlEq"],
-a.struct[title="struct syn::token::Shr"],
-a.struct[title="struct syn::token::ShrEq"],
-a.struct[title="struct syn::token::Slash"],
-a.struct[title="struct syn::token::SlashEq"],
-a.struct[title="struct syn::token::Star"],
-a.struct[title="struct syn::token::StarEq"],
-a.struct[title="struct syn::token::Static"],
-a.struct[title="struct syn::token::Struct"],
-a.struct[title="struct syn::token::Super"],
-a.struct[title="struct syn::token::Tilde"],
-a.struct[title="struct syn::token::Trait"],
-a.struct[title="struct syn::token::Try"],
-a.struct[title="struct syn::token::Type"],
-a.struct[title="struct syn::token::Typeof"],
-a.struct[title="struct syn::token::Underscore"],
-a.struct[title="struct syn::token::Union"],
-a.struct[title="struct syn::token::Unsafe"],
-a.struct[title="struct syn::token::Unsized"],
-a.struct[title="struct syn::token::Use"],
-a.struct[title="struct syn::token::Virtual"],
-a.struct[title="struct syn::token::Where"],
-a.struct[title="struct syn::token::While"],
-a.struct[title="struct syn::token::Yield"] {
- display: inline-block;
- color: transparent;
- white-space: nowrap;
-}
-
-a.struct[title="struct syn::token::Abstract"]::before,
-a.struct[title="struct syn::token::And"]::before,
-a.struct[title="struct syn::token::AndAnd"]::before,
-a.struct[title="struct syn::token::AndEq"]::before,
-a.struct[title="struct syn::token::As"]::before,
-a.struct[title="struct syn::token::Async"]::before,
-a.struct[title="struct syn::token::At"]::before,
-a.struct[title="struct syn::token::Auto"]::before,
-a.struct[title="struct syn::token::Await"]::before,
-a.struct[title="struct syn::token::Become"]::before,
-a.struct[title="struct syn::token::Box"]::before,
-a.struct[title="struct syn::token::Break"]::before,
-a.struct[title="struct syn::token::Caret"]::before,
-a.struct[title="struct syn::token::CaretEq"]::before,
-a.struct[title="struct syn::token::Colon"]::before,
-a.struct[title="struct syn::token::Comma"]::before,
-a.struct[title="struct syn::token::Const"]::before,
-a.struct[title="struct syn::token::Continue"]::before,
-a.struct[title="struct syn::token::Crate"]::before,
-a.struct[title="struct syn::token::Default"]::before,
-a.struct[title="struct syn::token::Do"]::before,
-a.struct[title="struct syn::token::Dollar"]::before,
-a.struct[title="struct syn::token::Dot"]::before,
-a.struct[title="struct syn::token::DotDot"]::before,
-a.struct[title="struct syn::token::DotDotDot"]::before,
-a.struct[title="struct syn::token::DotDotEq"]::before,
-a.struct[title="struct syn::token::Dyn"]::before,
-a.struct[title="struct syn::token::Else"]::before,
-a.struct[title="struct syn::token::Enum"]::before,
-a.struct[title="struct syn::token::Eq"]::before,
-a.struct[title="struct syn::token::EqEq"]::before,
-a.struct[title="struct syn::token::Extern"]::before,
-a.struct[title="struct syn::token::FatArrow"]::before,
-a.struct[title="struct syn::token::Final"]::before,
-a.struct[title="struct syn::token::Fn"]::before,
-a.struct[title="struct syn::token::For"]::before,
-a.struct[title="struct syn::token::Ge"]::before,
-a.struct[title="struct syn::token::Gt"]::before,
-a.struct[title="struct syn::token::If"]::before,
-a.struct[title="struct syn::token::Impl"]::before,
-a.struct[title="struct syn::token::In"]::before,
-a.struct[title="struct syn::token::LArrow"]::before,
-a.struct[title="struct syn::token::Le"]::before,
-a.struct[title="struct syn::token::Let"]::before,
-a.struct[title="struct syn::token::Loop"]::before,
-a.struct[title="struct syn::token::Lt"]::before,
-a.struct[title="struct syn::token::Macro"]::before,
-a.struct[title="struct syn::token::Match"]::before,
-a.struct[title="struct syn::token::Minus"]::before,
-a.struct[title="struct syn::token::MinusEq"]::before,
-a.struct[title="struct syn::token::Mod"]::before,
-a.struct[title="struct syn::token::Move"]::before,
-a.struct[title="struct syn::token::Mut"]::before,
-a.struct[title="struct syn::token::Ne"]::before,
-a.struct[title="struct syn::token::Not"]::before,
-a.struct[title="struct syn::token::Or"]::before,
-a.struct[title="struct syn::token::OrEq"]::before,
-a.struct[title="struct syn::token::OrOr"]::before,
-a.struct[title="struct syn::token::Override"]::before,
-a.struct[title="struct syn::token::PathSep"]::before,
-a.struct[title="struct syn::token::Percent"]::before,
-a.struct[title="struct syn::token::PercentEq"]::before,
-a.struct[title="struct syn::token::Plus"]::before,
-a.struct[title="struct syn::token::PlusEq"]::before,
-a.struct[title="struct syn::token::Pound"]::before,
-a.struct[title="struct syn::token::Priv"]::before,
-a.struct[title="struct syn::token::Pub"]::before,
-a.struct[title="struct syn::token::Question"]::before,
-a.struct[title="struct syn::token::RArrow"]::before,
-a.struct[title="struct syn::token::Raw"]::before,
-a.struct[title="struct syn::token::Ref"]::before,
-a.struct[title="struct syn::token::Return"]::before,
-a.struct[title="struct syn::token::SelfType"]::before,
-a.struct[title="struct syn::token::SelfValue"]::before,
-a.struct[title="struct syn::token::Semi"]::before,
-a.struct[title="struct syn::token::Shl"]::before,
-a.struct[title="struct syn::token::ShlEq"]::before,
-a.struct[title="struct syn::token::Shr"]::before,
-a.struct[title="struct syn::token::ShrEq"]::before,
-a.struct[title="struct syn::token::Slash"]::before,
-a.struct[title="struct syn::token::SlashEq"]::before,
-a.struct[title="struct syn::token::Star"]::before,
-a.struct[title="struct syn::token::StarEq"]::before,
-a.struct[title="struct syn::token::Static"]::before,
-a.struct[title="struct syn::token::Struct"]::before,
-a.struct[title="struct syn::token::Super"]::before,
-a.struct[title="struct syn::token::Tilde"]::before,
-a.struct[title="struct syn::token::Trait"]::before,
-a.struct[title="struct syn::token::Try"]::before,
-a.struct[title="struct syn::token::Type"]::before,
-a.struct[title="struct syn::token::Typeof"]::before,
-a.struct[title="struct syn::token::Underscore"]::before,
-a.struct[title="struct syn::token::Union"]::before,
-a.struct[title="struct syn::token::Unsafe"]::before,
-a.struct[title="struct syn::token::Unsized"]::before,
-a.struct[title="struct syn::token::Use"]::before,
-a.struct[title="struct syn::token::Virtual"]::before,
-a.struct[title="struct syn::token::Where"]::before,
-a.struct[title="struct syn::token::While"]::before,
-a.struct[title="struct syn::token::Yield"]::before {
- display: inline-block;
- color: var(--type-link-color);
- width: 0;
-}
-
-a.struct[title="struct syn::token::Abstract"]::before {
- content: "Token![abstract]";
-}
-
-a.struct[title="struct syn::token::And"]::before {
- content: "Token![&]";
-}
-
-a.struct[title="struct syn::token::AndAnd"]::before {
- content: "Token![&&]";
-}
-
-a.struct[title="struct syn::token::AndEq"]::before {
- content: "Token![&=]";
-}
-
-a.struct[title="struct syn::token::As"]::before {
- content: "Token![as]";
-}
-
-a.struct[title="struct syn::token::Async"]::before {
- content: "Token![async]";
-}
-
-a.struct[title="struct syn::token::At"]::before {
- content: "Token![@]";
-}
-
-a.struct[title="struct syn::token::Auto"]::before {
- content: "Token![auto]";
-}
-
-a.struct[title="struct syn::token::Await"]::before {
- content: "Token![await]";
-}
-
-a.struct[title="struct syn::token::Become"]::before {
- content: "Token![become]";
-}
-
-a.struct[title="struct syn::token::Box"]::before {
- content: "Token![box]";
-}
-
-a.struct[title="struct syn::token::Break"]::before {
- content: "Token![break]";
-}
-
-a.struct[title="struct syn::token::Caret"]::before {
- content: "Token![^]";
-}
-
-a.struct[title="struct syn::token::CaretEq"]::before {
- content: "Token![^=]";
-}
-
-a.struct[title="struct syn::token::Colon"]::before {
- content: "Token![:]";
-}
-
-a.struct[title="struct syn::token::Comma"]::before {
- content: "Token![,]";
-}
-
-a.struct[title="struct syn::token::Const"]::before {
- content: "Token![const]";
-}
-
-a.struct[title="struct syn::token::Continue"]::before {
- content: "Token![continue]";
-}
-
-a.struct[title="struct syn::token::Crate"]::before {
- content: "Token![crate]";
-}
-
-a.struct[title="struct syn::token::Default"]::before {
- content: "Token![default]";
-}
-
-a.struct[title="struct syn::token::Do"]::before {
- content: "Token![do]";
-}
-
-a.struct[title="struct syn::token::Dollar"]::before {
- content: "Token![$]";
-}
-
-a.struct[title="struct syn::token::Dot"]::before {
- content: "Token![.]";
-}
-
-a.struct[title="struct syn::token::DotDot"]::before {
- content: "Token![..]";
-}
-
-a.struct[title="struct syn::token::DotDotDot"]::before {
- content: "Token![...]";
-}
-
-a.struct[title="struct syn::token::DotDotEq"]::before {
- content: "Token![..=]";
-}
-
-a.struct[title="struct syn::token::Dyn"]::before {
- content: "Token![dyn]";
-}
-
-a.struct[title="struct syn::token::Else"]::before {
- content: "Token![else]";
-}
-
-a.struct[title="struct syn::token::Enum"]::before {
- content: "Token![enum]";
-}
-
-a.struct[title="struct syn::token::Eq"]::before {
- content: "Token![=]";
-}
-
-a.struct[title="struct syn::token::EqEq"]::before {
- content: "Token![==]";
-}
-
-a.struct[title="struct syn::token::Extern"]::before {
- content: "Token![extern]";
-}
-
-a.struct[title="struct syn::token::FatArrow"]::before {
- content: "Token![=>]";
-}
-
-a.struct[title="struct syn::token::Final"]::before {
- content: "Token![final]";
-}
-
-a.struct[title="struct syn::token::Fn"]::before {
- content: "Token![fn]";
-}
-
-a.struct[title="struct syn::token::For"]::before {
- content: "Token![for]";
-}
-
-a.struct[title="struct syn::token::Ge"]::before {
- content: "Token![>=]";
-}
-
-a.struct[title="struct syn::token::Gt"]::before {
- content: "Token![>]";
-}
-
-a.struct[title="struct syn::token::If"]::before {
- content: "Token![if]";
-}
-
-a.struct[title="struct syn::token::Impl"]::before {
- content: "Token![impl]";
-}
-
-a.struct[title="struct syn::token::In"]::before {
- content: "Token![in]";
-}
-
-a.struct[title="struct syn::token::LArrow"]::before {
- content: "Token![<-]";
-}
-
-a.struct[title="struct syn::token::Le"]::before {
- content: "Token![<=]";
-}
-
-a.struct[title="struct syn::token::Let"]::before {
- content: "Token![let]";
-}
-
-a.struct[title="struct syn::token::Loop"]::before {
- content: "Token![loop]";
-}
-
-a.struct[title="struct syn::token::Lt"]::before {
- content: "Token![<]";
-}
-
-a.struct[title="struct syn::token::Macro"]::before {
- content: "Token![macro]";
-}
-
-a.struct[title="struct syn::token::Match"]::before {
- content: "Token![match]";
-}
-
-a.struct[title="struct syn::token::Minus"]::before {
- content: "Token![-]";
-}
-
-a.struct[title="struct syn::token::MinusEq"]::before {
- content: "Token![-=]";
-}
-
-a.struct[title="struct syn::token::Mod"]::before {
- content: "Token![mod]";
-}
-
-a.struct[title="struct syn::token::Move"]::before {
- content: "Token![move]";
-}
-
-a.struct[title="struct syn::token::Mut"]::before {
- content: "Token![mut]";
-}
-
-a.struct[title="struct syn::token::Ne"]::before {
- content: "Token![!=]";
-}
-
-a.struct[title="struct syn::token::Not"]::before {
- content: "Token![!]";
-}
-
-a.struct[title="struct syn::token::Or"]::before {
- content: "Token![|]";
-}
-
-a.struct[title="struct syn::token::OrEq"]::before {
- content: "Token![|=]";
-}
-
-a.struct[title="struct syn::token::OrOr"]::before {
- content: "Token![||]";
-}
-
-a.struct[title="struct syn::token::Override"]::before {
- content: "Token![override]";
-}
-
-a.struct[title="struct syn::token::PathSep"]::before {
- content: "Token![::]";
-}
-
-a.struct[title="struct syn::token::Percent"]::before {
- content: "Token![%]";
-}
-
-a.struct[title="struct syn::token::PercentEq"]::before {
- content: "Token![%=]";
-}
-
-a.struct[title="struct syn::token::Plus"]::before {
- content: "Token![+]";
-}
-
-a.struct[title="struct syn::token::PlusEq"]::before {
- content: "Token![+=]";
-}
-
-a.struct[title="struct syn::token::Pound"]::before {
- content: "Token![#]";
-}
-
-a.struct[title="struct syn::token::Priv"]::before {
- content: "Token![priv]";
-}
-
-a.struct[title="struct syn::token::Pub"]::before {
- content: "Token![pub]";
-}
-
-a.struct[title="struct syn::token::Question"]::before {
- content: "Token![?]";
-}
-
-a.struct[title="struct syn::token::RArrow"]::before {
- content: "Token![->]";
-}
-
-a.struct[title="struct syn::token::Raw"]::before {
- content: "Token![raw]";
-}
-
-a.struct[title="struct syn::token::Ref"]::before {
- content: "Token![ref]";
-}
-
-a.struct[title="struct syn::token::Return"]::before {
- content: "Token![return]";
-}
-
-a.struct[title="struct syn::token::SelfType"]::before {
- content: "Token![Self]";
-}
-
-a.struct[title="struct syn::token::SelfValue"]::before {
- content: "Token![self]";
-}
-
-a.struct[title="struct syn::token::Semi"]::before {
- content: "Token![;]";
-}
-
-a.struct[title="struct syn::token::Shl"]::before {
- content: "Token![<<]";
-}
-
-a.struct[title="struct syn::token::ShlEq"]::before {
- content: "Token![<<=]";
-}
-
-a.struct[title="struct syn::token::Shr"]::before {
- content: "Token![>>]";
-}
-
-a.struct[title="struct syn::token::ShrEq"]::before {
- content: "Token![>>=]";
-}
-
-a.struct[title="struct syn::token::Slash"]::before {
- content: "Token![/]";
-}
-
-a.struct[title="struct syn::token::SlashEq"]::before {
- content: "Token![/=]";
-}
-
-a.struct[title="struct syn::token::Star"]::before {
- content: "Token![*]";
-}
-
-a.struct[title="struct syn::token::StarEq"]::before {
- content: "Token![*=]";
-}
-
-a.struct[title="struct syn::token::Static"]::before {
- content: "Token![static]";
-}
-
-a.struct[title="struct syn::token::Struct"]::before {
- content: "Token![struct]";
-}
-
-a.struct[title="struct syn::token::Super"]::before {
- content: "Token![super]";
-}
-
-a.struct[title="struct syn::token::Tilde"]::before {
- content: "Token![~]";
-}
-
-a.struct[title="struct syn::token::Trait"]::before {
- content: "Token![trait]";
-}
-
-a.struct[title="struct syn::token::Try"]::before {
- content: "Token![try]";
-}
-
-a.struct[title="struct syn::token::Type"]::before {
- content: "Token![type]";
-}
-
-a.struct[title="struct syn::token::Typeof"]::before {
- content: "Token![typeof]";
-}
-
-a.struct[title="struct syn::token::Underscore"]::before {
- content: "Token![_]";
- font-size: calc(100% * 10 / 9);
-}
-
-a.struct[title="struct syn::token::Union"]::before {
- content: "Token![union]";
-}
-
-a.struct[title="struct syn::token::Unsafe"]::before {
- content: "Token![unsafe]";
-}
-
-a.struct[title="struct syn::token::Unsized"]::before {
- content: "Token![unsized]";
-}
-
-a.struct[title="struct syn::token::Use"]::before {
- content: "Token![use]";
-}
-
-a.struct[title="struct syn::token::Virtual"]::before {
- content: "Token![virtual]";
-}
-
-a.struct[title="struct syn::token::Where"]::before {
- content: "Token![where]";
-}
-
-a.struct[title="struct syn::token::While"]::before {
- content: "Token![while]";
-}
-
-a.struct[title="struct syn::token::Yield"]::before {
- content: "Token![yield]";
-}
-
-a.struct[title="struct syn::token::Underscore"] {
- font-size: calc(100% * 9 / 10);
-}
-
-a.struct[title="struct syn::token::PercentEq"]::after,
-a.struct[title="struct syn::token::Question"]::after {
- content: ".";
-}
-
-a.struct[title="struct syn::token::DotDotDot"]::after,
-a.struct[title="struct syn::token::FatArrow"]::after,
-a.struct[title="struct syn::token::Percent"]::after {
- content: "..";
-}
-
-a.struct[title="struct syn::token::CaretEq"]::after,
-a.struct[title="struct syn::token::Dollar"]::after,
-a.struct[title="struct syn::token::DotDotEq"]::after,
-a.struct[title="struct syn::token::MinusEq"]::after,
-a.struct[title="struct syn::token::PathSep"]::after,
-a.struct[title="struct syn::token::SelfValue"]::after,
-a.struct[title="struct syn::token::SlashEq"]::after {
- content: "...";
-}
-
-a.struct[title="struct syn::token::AndAnd"]::after,
-a.struct[title="struct syn::token::Caret"]::after,
-a.struct[title="struct syn::token::Colon"]::after,
-a.struct[title="struct syn::token::Comma"]::after,
-a.struct[title="struct syn::token::DotDot"]::after,
-a.struct[title="struct syn::token::LArrow"]::after,
-a.struct[title="struct syn::token::Minus"]::after,
-a.struct[title="struct syn::token::PlusEq"]::after,
-a.struct[title="struct syn::token::Pound"]::after,
-a.struct[title="struct syn::token::RArrow"]::after,
-a.struct[title="struct syn::token::SelfType"]::after,
-a.struct[title="struct syn::token::Slash"]::after,
-a.struct[title="struct syn::token::StarEq"]::after,
-a.struct[title="struct syn::token::Tilde"]::after {
- content: "....";
-}
-
-a.struct[title="struct syn::token::AndEq"]::after,
-a.struct[title="struct syn::token::Plus"]::after,
-a.struct[title="struct syn::token::Semi"]::after,
-a.struct[title="struct syn::token::Star"]::after {
- content: ".....";
-}
-
-a.struct[title="struct syn::token::And"]::after,
-a.struct[title="struct syn::token::Dot"]::after,
-a.struct[title="struct syn::token::EqEq"]::after,
-a.struct[title="struct syn::token::Not"]::after,
-a.struct[title="struct syn::token::OrEq"]::after,
-a.struct[title="struct syn::token::OrOr"]::after,
-a.struct[title="struct syn::token::ShlEq"]::after,
-a.struct[title="struct syn::token::ShrEq"]::after {
- content: "......";
-}
-
-a.struct[title="struct syn::token::At"]::after,
-a.struct[title="struct syn::token::Eq"]::after,
-a.struct[title="struct syn::token::Gt"]::after,
-a.struct[title="struct syn::token::Lt"]::after,
-a.struct[title="struct syn::token::Or"]::after,
-a.struct[title="struct syn::token::Shl"]::after,
-a.struct[title="struct syn::token::Shr"]::after {
- content: ".......";
-}
-
-a.struct[title="struct syn::token::Abstract"]::after,
-a.struct[title="struct syn::token::As"]::after,
-a.struct[title="struct syn::token::Async"]::after,
-a.struct[title="struct syn::token::Auto"]::after,
-a.struct[title="struct syn::token::Await"]::after,
-a.struct[title="struct syn::token::Become"]::after,
-a.struct[title="struct syn::token::Box"]::after,
-a.struct[title="struct syn::token::Break"]::after,
-a.struct[title="struct syn::token::Const"]::after,
-a.struct[title="struct syn::token::Continue"]::after,
-a.struct[title="struct syn::token::Crate"]::after,
-a.struct[title="struct syn::token::Default"]::after,
-a.struct[title="struct syn::token::Do"]::after,
-a.struct[title="struct syn::token::Dyn"]::after,
-a.struct[title="struct syn::token::Else"]::after,
-a.struct[title="struct syn::token::Enum"]::after,
-a.struct[title="struct syn::token::Extern"]::after,
-a.struct[title="struct syn::token::Final"]::after,
-a.struct[title="struct syn::token::Fn"]::after,
-a.struct[title="struct syn::token::For"]::after,
-a.struct[title="struct syn::token::Ge"]::after,
-a.struct[title="struct syn::token::If"]::after,
-a.struct[title="struct syn::token::Impl"]::after,
-a.struct[title="struct syn::token::In"]::after,
-a.struct[title="struct syn::token::Le"]::after,
-a.struct[title="struct syn::token::Let"]::after,
-a.struct[title="struct syn::token::Loop"]::after,
-a.struct[title="struct syn::token::Macro"]::after,
-a.struct[title="struct syn::token::Match"]::after,
-a.struct[title="struct syn::token::Mod"]::after,
-a.struct[title="struct syn::token::Move"]::after,
-a.struct[title="struct syn::token::Mut"]::after,
-a.struct[title="struct syn::token::Ne"]::after,
-a.struct[title="struct syn::token::Override"]::after,
-a.struct[title="struct syn::token::Priv"]::after,
-a.struct[title="struct syn::token::Pub"]::after,
-a.struct[title="struct syn::token::Raw"]::after,
-a.struct[title="struct syn::token::Ref"]::after,
-a.struct[title="struct syn::token::Return"]::after,
-a.struct[title="struct syn::token::Static"]::after,
-a.struct[title="struct syn::token::Struct"]::after,
-a.struct[title="struct syn::token::Super"]::after,
-a.struct[title="struct syn::token::Trait"]::after,
-a.struct[title="struct syn::token::Try"]::after,
-a.struct[title="struct syn::token::Type"]::after,
-a.struct[title="struct syn::token::Typeof"]::after,
-a.struct[title="struct syn::token::Union"]::after,
-a.struct[title="struct syn::token::Unsafe"]::after,
-a.struct[title="struct syn::token::Unsized"]::after,
-a.struct[title="struct syn::token::Use"]::after,
-a.struct[title="struct syn::token::Virtual"]::after,
-a.struct[title="struct syn::token::Where"]::after,
-a.struct[title="struct syn::token::While"]::after,
-a.struct[title="struct syn::token::Yield"]::after {
- content: "........";
-}
diff --git a/vendor/syn/src/gen/visit.rs b/vendor/syn/src/gen/visit.rs
deleted file mode 100644
index cd258fcd..00000000
--- a/vendor/syn/src/gen/visit.rs
+++ /dev/null
@@ -1,3941 +0,0 @@
-// 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 walk a shared borrow of a syntax tree.
-///
-/// See the [module documentation] for details.
-///
-/// [module documentation]: self
-pub trait Visit<'ast> {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_abi(&mut self, i: &'ast crate::Abi) {
- visit_abi(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 self,
- i: &'ast crate::AngleBracketedGenericArguments,
- ) {
- visit_angle_bracketed_generic_arguments(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_arm(&mut self, i: &'ast crate::Arm) {
- visit_arm(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_const(&mut self, i: &'ast crate::AssocConst) {
- visit_assoc_const(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_type(&mut self, i: &'ast crate::AssocType) {
- visit_assoc_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attr_style(&mut self, i: &'ast crate::AttrStyle) {
- visit_attr_style(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attribute(&mut self, i: &'ast crate::Attribute) {
- visit_attribute(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_fn_arg(&mut self, i: &'ast crate::BareFnArg) {
- visit_bare_fn_arg(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_variadic(&mut self, i: &'ast crate::BareVariadic) {
- visit_bare_variadic(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bin_op(&mut self, i: &'ast crate::BinOp) {
- visit_bin_op(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_block(&mut self, i: &'ast crate::Block) {
- visit_block(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bound_lifetimes(&mut self, i: &'ast crate::BoundLifetimes) {
- visit_bound_lifetimes(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_captured_param(&mut self, i: &'ast crate::CapturedParam) {
- visit_captured_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_const_param(&mut self, i: &'ast crate::ConstParam) {
- visit_const_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_constraint(&mut self, i: &'ast crate::Constraint) {
- visit_constraint(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data(&mut self, i: &'ast crate::Data) {
- visit_data(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_enum(&mut self, i: &'ast crate::DataEnum) {
- visit_data_enum(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_struct(&mut self, i: &'ast crate::DataStruct) {
- visit_data_struct(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_union(&mut self, i: &'ast crate::DataUnion) {
- visit_data_union(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_derive_input(&mut self, i: &'ast crate::DeriveInput) {
- visit_derive_input(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr(&mut self, i: &'ast crate::Expr) {
- visit_expr(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_array(&mut self, i: &'ast crate::ExprArray) {
- visit_expr_array(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_assign(&mut self, i: &'ast crate::ExprAssign) {
- visit_expr_assign(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_async(&mut self, i: &'ast crate::ExprAsync) {
- visit_expr_async(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_await(&mut self, i: &'ast crate::ExprAwait) {
- visit_expr_await(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_binary(&mut self, i: &'ast crate::ExprBinary) {
- visit_expr_binary(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_block(&mut self, i: &'ast crate::ExprBlock) {
- visit_expr_block(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_break(&mut self, i: &'ast crate::ExprBreak) {
- visit_expr_break(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_call(&mut self, i: &'ast crate::ExprCall) {
- visit_expr_call(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_cast(&mut self, i: &'ast crate::ExprCast) {
- visit_expr_cast(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_closure(&mut self, i: &'ast crate::ExprClosure) {
- visit_expr_closure(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_const(&mut self, i: &'ast crate::ExprConst) {
- visit_expr_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_continue(&mut self, i: &'ast crate::ExprContinue) {
- visit_expr_continue(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_field(&mut self, i: &'ast crate::ExprField) {
- visit_expr_field(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_for_loop(&mut self, i: &'ast crate::ExprForLoop) {
- visit_expr_for_loop(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_group(&mut self, i: &'ast crate::ExprGroup) {
- visit_expr_group(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_if(&mut self, i: &'ast crate::ExprIf) {
- visit_expr_if(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_index(&mut self, i: &'ast crate::ExprIndex) {
- visit_expr_index(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_infer(&mut self, i: &'ast crate::ExprInfer) {
- visit_expr_infer(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_let(&mut self, i: &'ast crate::ExprLet) {
- visit_expr_let(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_lit(&mut self, i: &'ast crate::ExprLit) {
- visit_expr_lit(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_loop(&mut self, i: &'ast crate::ExprLoop) {
- visit_expr_loop(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_macro(&mut self, i: &'ast crate::ExprMacro) {
- visit_expr_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_match(&mut self, i: &'ast crate::ExprMatch) {
- visit_expr_match(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_method_call(&mut self, i: &'ast crate::ExprMethodCall) {
- visit_expr_method_call(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_paren(&mut self, i: &'ast crate::ExprParen) {
- visit_expr_paren(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_path(&mut self, i: &'ast crate::ExprPath) {
- visit_expr_path(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_range(&mut self, i: &'ast crate::ExprRange) {
- visit_expr_range(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_raw_addr(&mut self, i: &'ast crate::ExprRawAddr) {
- visit_expr_raw_addr(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_reference(&mut self, i: &'ast crate::ExprReference) {
- visit_expr_reference(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_repeat(&mut self, i: &'ast crate::ExprRepeat) {
- visit_expr_repeat(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_return(&mut self, i: &'ast crate::ExprReturn) {
- visit_expr_return(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_struct(&mut self, i: &'ast crate::ExprStruct) {
- visit_expr_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try(&mut self, i: &'ast crate::ExprTry) {
- visit_expr_try(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_block(&mut self, i: &'ast crate::ExprTryBlock) {
- visit_expr_try_block(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_tuple(&mut self, i: &'ast crate::ExprTuple) {
- visit_expr_tuple(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_unary(&mut self, i: &'ast crate::ExprUnary) {
- visit_expr_unary(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_unsafe(&mut self, i: &'ast crate::ExprUnsafe) {
- visit_expr_unsafe(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_while(&mut self, i: &'ast crate::ExprWhile) {
- visit_expr_while(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_yield(&mut self, i: &'ast crate::ExprYield) {
- visit_expr_yield(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field(&mut self, i: &'ast crate::Field) {
- visit_field(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mutability(&mut self, i: &'ast crate::FieldMutability) {
- visit_field_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_field_pat(&mut self, i: &'ast crate::FieldPat) {
- visit_field_pat(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_value(&mut self, i: &'ast crate::FieldValue) {
- visit_field_value(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields(&mut self, i: &'ast crate::Fields) {
- visit_fields(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_named(&mut self, i: &'ast crate::FieldsNamed) {
- visit_fields_named(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_unnamed(&mut self, i: &'ast crate::FieldsUnnamed) {
- visit_fields_unnamed(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_file(&mut self, i: &'ast crate::File) {
- visit_file(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_fn_arg(&mut self, i: &'ast crate::FnArg) {
- visit_fn_arg(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item(&mut self, i: &'ast crate::ForeignItem) {
- visit_foreign_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_fn(&mut self, i: &'ast crate::ForeignItemFn) {
- visit_foreign_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_macro(&mut self, i: &'ast crate::ForeignItemMacro) {
- visit_foreign_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_static(&mut self, i: &'ast crate::ForeignItemStatic) {
- visit_foreign_item_static(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_type(&mut self, i: &'ast crate::ForeignItemType) {
- visit_foreign_item_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_argument(&mut self, i: &'ast crate::GenericArgument) {
- visit_generic_argument(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_param(&mut self, i: &'ast crate::GenericParam) {
- visit_generic_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generics(&mut self, i: &'ast crate::Generics) {
- visit_generics(self, i);
- }
- fn visit_ident(&mut self, i: &'ast proc_macro2::Ident) {
- visit_ident(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item(&mut self, i: &'ast crate::ImplItem) {
- visit_impl_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_const(&mut self, i: &'ast crate::ImplItemConst) {
- visit_impl_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_fn(&mut self, i: &'ast crate::ImplItemFn) {
- visit_impl_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_macro(&mut self, i: &'ast crate::ImplItemMacro) {
- visit_impl_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_type(&mut self, i: &'ast crate::ImplItemType) {
- visit_impl_item_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_restriction(&mut self, i: &'ast crate::ImplRestriction) {
- visit_impl_restriction(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_index(&mut self, i: &'ast crate::Index) {
- visit_index(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item(&mut self, i: &'ast crate::Item) {
- visit_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_const(&mut self, i: &'ast crate::ItemConst) {
- visit_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_enum(&mut self, i: &'ast crate::ItemEnum) {
- visit_item_enum(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_extern_crate(&mut self, i: &'ast crate::ItemExternCrate) {
- visit_item_extern_crate(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_fn(&mut self, i: &'ast crate::ItemFn) {
- visit_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_foreign_mod(&mut self, i: &'ast crate::ItemForeignMod) {
- visit_item_foreign_mod(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_impl(&mut self, i: &'ast crate::ItemImpl) {
- visit_item_impl(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_macro(&mut self, i: &'ast crate::ItemMacro) {
- visit_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mod(&mut self, i: &'ast crate::ItemMod) {
- visit_item_mod(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_static(&mut self, i: &'ast crate::ItemStatic) {
- visit_item_static(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_struct(&mut self, i: &'ast crate::ItemStruct) {
- visit_item_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait(&mut self, i: &'ast crate::ItemTrait) {
- visit_item_trait(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_alias(&mut self, i: &'ast crate::ItemTraitAlias) {
- visit_item_trait_alias(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_type(&mut self, i: &'ast crate::ItemType) {
- visit_item_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_union(&mut self, i: &'ast crate::ItemUnion) {
- visit_item_union(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_use(&mut self, i: &'ast crate::ItemUse) {
- visit_item_use(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_label(&mut self, i: &'ast crate::Label) {
- visit_label(self, i);
- }
- fn visit_lifetime(&mut self, i: &'ast crate::Lifetime) {
- visit_lifetime(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_lifetime_param(&mut self, i: &'ast crate::LifetimeParam) {
- visit_lifetime_param(self, i);
- }
- fn visit_lit(&mut self, i: &'ast crate::Lit) {
- visit_lit(self, i);
- }
- fn visit_lit_bool(&mut self, i: &'ast crate::LitBool) {
- visit_lit_bool(self, i);
- }
- fn visit_lit_byte(&mut self, i: &'ast crate::LitByte) {
- visit_lit_byte(self, i);
- }
- fn visit_lit_byte_str(&mut self, i: &'ast crate::LitByteStr) {
- visit_lit_byte_str(self, i);
- }
- fn visit_lit_cstr(&mut self, i: &'ast crate::LitCStr) {
- visit_lit_cstr(self, i);
- }
- fn visit_lit_char(&mut self, i: &'ast crate::LitChar) {
- visit_lit_char(self, i);
- }
- fn visit_lit_float(&mut self, i: &'ast crate::LitFloat) {
- visit_lit_float(self, i);
- }
- fn visit_lit_int(&mut self, i: &'ast crate::LitInt) {
- visit_lit_int(self, i);
- }
- fn visit_lit_str(&mut self, i: &'ast crate::LitStr) {
- visit_lit_str(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local(&mut self, i: &'ast crate::Local) {
- visit_local(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_init(&mut self, i: &'ast crate::LocalInit) {
- visit_local_init(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro(&mut self, i: &'ast crate::Macro) {
- visit_macro(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_delimiter(&mut self, i: &'ast crate::MacroDelimiter) {
- visit_macro_delimiter(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_member(&mut self, i: &'ast crate::Member) {
- visit_member(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta(&mut self, i: &'ast crate::Meta) {
- visit_meta(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_list(&mut self, i: &'ast crate::MetaList) {
- visit_meta_list(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_name_value(&mut self, i: &'ast crate::MetaNameValue) {
- visit_meta_name_value(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_parenthesized_generic_arguments(
- &mut self,
- i: &'ast crate::ParenthesizedGenericArguments,
- ) {
- visit_parenthesized_generic_arguments(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat(&mut self, i: &'ast crate::Pat) {
- visit_pat(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_ident(&mut self, i: &'ast crate::PatIdent) {
- visit_pat_ident(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_or(&mut self, i: &'ast crate::PatOr) {
- visit_pat_or(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_paren(&mut self, i: &'ast crate::PatParen) {
- visit_pat_paren(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_reference(&mut self, i: &'ast crate::PatReference) {
- visit_pat_reference(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_rest(&mut self, i: &'ast crate::PatRest) {
- visit_pat_rest(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_slice(&mut self, i: &'ast crate::PatSlice) {
- visit_pat_slice(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_struct(&mut self, i: &'ast crate::PatStruct) {
- visit_pat_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple(&mut self, i: &'ast crate::PatTuple) {
- visit_pat_tuple(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_struct(&mut self, i: &'ast crate::PatTupleStruct) {
- visit_pat_tuple_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_type(&mut self, i: &'ast crate::PatType) {
- visit_pat_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_wild(&mut self, i: &'ast crate::PatWild) {
- visit_pat_wild(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path(&mut self, i: &'ast crate::Path) {
- visit_path(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_arguments(&mut self, i: &'ast crate::PathArguments) {
- visit_path_arguments(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_segment(&mut self, i: &'ast crate::PathSegment) {
- visit_path_segment(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pointer_mutability(&mut self, i: &'ast crate::PointerMutability) {
- visit_pointer_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_precise_capture(&mut self, i: &'ast crate::PreciseCapture) {
- visit_precise_capture(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_lifetime(&mut self, i: &'ast crate::PredicateLifetime) {
- visit_predicate_lifetime(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_type(&mut self, i: &'ast crate::PredicateType) {
- visit_predicate_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_qself(&mut self, i: &'ast crate::QSelf) {
- visit_qself(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_range_limits(&mut self, i: &'ast crate::RangeLimits) {
- visit_range_limits(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_receiver(&mut self, i: &'ast crate::Receiver) {
- visit_receiver(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_return_type(&mut self, i: &'ast crate::ReturnType) {
- visit_return_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_signature(&mut self, i: &'ast crate::Signature) {
- visit_signature(self, i);
- }
- fn visit_span(&mut self, i: &proc_macro2::Span) {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_static_mutability(&mut self, i: &'ast crate::StaticMutability) {
- visit_static_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt(&mut self, i: &'ast crate::Stmt) {
- visit_stmt(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_macro(&mut self, i: &'ast crate::StmtMacro) {
- visit_stmt_macro(self, i);
- }
- fn visit_token_stream(&mut self, i: &'ast proc_macro2::TokenStream) {}
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound(&mut self, i: &'ast crate::TraitBound) {
- visit_trait_bound(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_modifier(&mut self, i: &'ast crate::TraitBoundModifier) {
- visit_trait_bound_modifier(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item(&mut self, i: &'ast crate::TraitItem) {
- visit_trait_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_const(&mut self, i: &'ast crate::TraitItemConst) {
- visit_trait_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_fn(&mut self, i: &'ast crate::TraitItemFn) {
- visit_trait_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_macro(&mut self, i: &'ast crate::TraitItemMacro) {
- visit_trait_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_type(&mut self, i: &'ast crate::TraitItemType) {
- visit_trait_item_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type(&mut self, i: &'ast crate::Type) {
- visit_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_array(&mut self, i: &'ast crate::TypeArray) {
- visit_type_array(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_bare_fn(&mut self, i: &'ast crate::TypeBareFn) {
- visit_type_bare_fn(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_group(&mut self, i: &'ast crate::TypeGroup) {
- visit_type_group(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_impl_trait(&mut self, i: &'ast crate::TypeImplTrait) {
- visit_type_impl_trait(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_infer(&mut self, i: &'ast crate::TypeInfer) {
- visit_type_infer(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_macro(&mut self, i: &'ast crate::TypeMacro) {
- visit_type_macro(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_never(&mut self, i: &'ast crate::TypeNever) {
- visit_type_never(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param(&mut self, i: &'ast crate::TypeParam) {
- visit_type_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_bound(&mut self, i: &'ast crate::TypeParamBound) {
- visit_type_param_bound(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_paren(&mut self, i: &'ast crate::TypeParen) {
- visit_type_paren(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_path(&mut self, i: &'ast crate::TypePath) {
- visit_type_path(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_ptr(&mut self, i: &'ast crate::TypePtr) {
- visit_type_ptr(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_reference(&mut self, i: &'ast crate::TypeReference) {
- visit_type_reference(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_slice(&mut self, i: &'ast crate::TypeSlice) {
- visit_type_slice(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_trait_object(&mut self, i: &'ast crate::TypeTraitObject) {
- visit_type_trait_object(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_tuple(&mut self, i: &'ast crate::TypeTuple) {
- visit_type_tuple(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_un_op(&mut self, i: &'ast crate::UnOp) {
- visit_un_op(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_glob(&mut self, i: &'ast crate::UseGlob) {
- visit_use_glob(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_group(&mut self, i: &'ast crate::UseGroup) {
- visit_use_group(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_name(&mut self, i: &'ast crate::UseName) {
- visit_use_name(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_path(&mut self, i: &'ast crate::UsePath) {
- visit_use_path(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_rename(&mut self, i: &'ast crate::UseRename) {
- visit_use_rename(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_tree(&mut self, i: &'ast crate::UseTree) {
- visit_use_tree(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_variadic(&mut self, i: &'ast crate::Variadic) {
- visit_variadic(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_variant(&mut self, i: &'ast crate::Variant) {
- visit_variant(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_vis_restricted(&mut self, i: &'ast crate::VisRestricted) {
- visit_vis_restricted(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_visibility(&mut self, i: &'ast crate::Visibility) {
- visit_visibility(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_clause(&mut self, i: &'ast crate::WhereClause) {
- visit_where_clause(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_predicate(&mut self, i: &'ast crate::WherePredicate) {
- visit_where_predicate(self, i);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_abi<'ast, V>(v: &mut V, node: &'ast crate::Abi)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.extern_token);
- if let Some(it) = &node.name {
- v.visit_lit_str(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_angle_bracketed_generic_arguments<'ast, V>(
- v: &mut V,
- node: &'ast crate::AngleBracketedGenericArguments,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.colon2_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_generic_argument(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_arm<'ast, V>(v: &mut V, node: &'ast crate::Arm)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_pat(&node.pat);
- if let Some(it) = &node.guard {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
- skip!(node.fat_arrow_token);
- v.visit_expr(&*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<'ast, V>(v: &mut V, node: &'ast crate::AssocConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.eq_token);
- v.visit_expr(&node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_assoc_type<'ast, V>(v: &mut V, node: &'ast crate::AssocType)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.eq_token);
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_attr_style<'ast, V>(v: &mut V, node: &'ast crate::AttrStyle)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::Attribute)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.pound_token);
- v.visit_attr_style(&node.style);
- skip!(node.bracket_token);
- v.visit_meta(&node.meta);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_fn_arg<'ast, V>(v: &mut V, node: &'ast crate::BareFnArg)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.name {
- v.visit_ident(&(it).0);
- skip!((it).1);
- }
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_variadic<'ast, V>(v: &mut V, node: &'ast crate::BareVariadic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.name {
- v.visit_ident(&(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<'ast, V>(v: &mut V, node: &'ast crate::BinOp)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::Block)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for it in &node.stmts {
- v.visit_stmt(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bound_lifetimes<'ast, V>(v: &mut V, node: &'ast crate::BoundLifetimes)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.for_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.lifetimes) {
- let it = el.value();
- v.visit_generic_param(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_captured_param<'ast, V>(v: &mut V, node: &'ast crate::CapturedParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::CapturedParam::Ident(_binding_0) => {
- v.visit_ident(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_const_param<'ast, V>(v: &mut V, node: &'ast crate::ConstParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- skip!(node.eq_token);
- if let Some(it) = &node.default {
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_constraint<'ast, V>(v: &mut V, node: &'ast crate::Constraint)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data<'ast, V>(v: &mut V, node: &'ast crate::Data)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Data::Struct(_binding_0) => {
- v.visit_data_struct(_binding_0);
- }
- crate::Data::Enum(_binding_0) => {
- v.visit_data_enum(_binding_0);
- }
- crate::Data::Union(_binding_0) => {
- v.visit_data_union(_binding_0);
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_enum<'ast, V>(v: &mut V, node: &'ast crate::DataEnum)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.enum_token);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.variants) {
- let it = el.value();
- v.visit_variant(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_struct<'ast, V>(v: &mut V, node: &'ast crate::DataStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.struct_token);
- v.visit_fields(&node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_union<'ast, V>(v: &mut V, node: &'ast crate::DataUnion)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.union_token);
- v.visit_fields_named(&node.fields);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_derive_input<'ast, V>(v: &mut V, node: &'ast crate::DeriveInput)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_data(&node.data);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr<'ast, V>(v: &mut V, node: &'ast crate::Expr)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Expr::Array(_binding_0) => {
- full!(v.visit_expr_array(_binding_0));
- }
- crate::Expr::Assign(_binding_0) => {
- full!(v.visit_expr_assign(_binding_0));
- }
- crate::Expr::Async(_binding_0) => {
- full!(v.visit_expr_async(_binding_0));
- }
- crate::Expr::Await(_binding_0) => {
- full!(v.visit_expr_await(_binding_0));
- }
- crate::Expr::Binary(_binding_0) => {
- v.visit_expr_binary(_binding_0);
- }
- crate::Expr::Block(_binding_0) => {
- full!(v.visit_expr_block(_binding_0));
- }
- crate::Expr::Break(_binding_0) => {
- full!(v.visit_expr_break(_binding_0));
- }
- crate::Expr::Call(_binding_0) => {
- v.visit_expr_call(_binding_0);
- }
- crate::Expr::Cast(_binding_0) => {
- v.visit_expr_cast(_binding_0);
- }
- crate::Expr::Closure(_binding_0) => {
- full!(v.visit_expr_closure(_binding_0));
- }
- crate::Expr::Const(_binding_0) => {
- full!(v.visit_expr_const(_binding_0));
- }
- crate::Expr::Continue(_binding_0) => {
- full!(v.visit_expr_continue(_binding_0));
- }
- crate::Expr::Field(_binding_0) => {
- v.visit_expr_field(_binding_0);
- }
- crate::Expr::ForLoop(_binding_0) => {
- full!(v.visit_expr_for_loop(_binding_0));
- }
- crate::Expr::Group(_binding_0) => {
- v.visit_expr_group(_binding_0);
- }
- crate::Expr::If(_binding_0) => {
- full!(v.visit_expr_if(_binding_0));
- }
- crate::Expr::Index(_binding_0) => {
- v.visit_expr_index(_binding_0);
- }
- crate::Expr::Infer(_binding_0) => {
- full!(v.visit_expr_infer(_binding_0));
- }
- crate::Expr::Let(_binding_0) => {
- full!(v.visit_expr_let(_binding_0));
- }
- crate::Expr::Lit(_binding_0) => {
- v.visit_expr_lit(_binding_0);
- }
- crate::Expr::Loop(_binding_0) => {
- full!(v.visit_expr_loop(_binding_0));
- }
- crate::Expr::Macro(_binding_0) => {
- v.visit_expr_macro(_binding_0);
- }
- crate::Expr::Match(_binding_0) => {
- full!(v.visit_expr_match(_binding_0));
- }
- crate::Expr::MethodCall(_binding_0) => {
- v.visit_expr_method_call(_binding_0);
- }
- crate::Expr::Paren(_binding_0) => {
- v.visit_expr_paren(_binding_0);
- }
- crate::Expr::Path(_binding_0) => {
- v.visit_expr_path(_binding_0);
- }
- crate::Expr::Range(_binding_0) => {
- full!(v.visit_expr_range(_binding_0));
- }
- crate::Expr::RawAddr(_binding_0) => {
- full!(v.visit_expr_raw_addr(_binding_0));
- }
- crate::Expr::Reference(_binding_0) => {
- v.visit_expr_reference(_binding_0);
- }
- crate::Expr::Repeat(_binding_0) => {
- full!(v.visit_expr_repeat(_binding_0));
- }
- crate::Expr::Return(_binding_0) => {
- full!(v.visit_expr_return(_binding_0));
- }
- crate::Expr::Struct(_binding_0) => {
- v.visit_expr_struct(_binding_0);
- }
- crate::Expr::Try(_binding_0) => {
- full!(v.visit_expr_try(_binding_0));
- }
- crate::Expr::TryBlock(_binding_0) => {
- full!(v.visit_expr_try_block(_binding_0));
- }
- crate::Expr::Tuple(_binding_0) => {
- v.visit_expr_tuple(_binding_0);
- }
- crate::Expr::Unary(_binding_0) => {
- v.visit_expr_unary(_binding_0);
- }
- crate::Expr::Unsafe(_binding_0) => {
- full!(v.visit_expr_unsafe(_binding_0));
- }
- crate::Expr::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- crate::Expr::While(_binding_0) => {
- full!(v.visit_expr_while(_binding_0));
- }
- crate::Expr::Yield(_binding_0) => {
- full!(v.visit_expr_yield(_binding_0));
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_array<'ast, V>(v: &mut V, node: &'ast crate::ExprArray)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_assign<'ast, V>(v: &mut V, node: &'ast crate::ExprAssign)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.left);
- skip!(node.eq_token);
- v.visit_expr(&*node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_async<'ast, V>(v: &mut V, node: &'ast crate::ExprAsync)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.async_token);
- skip!(node.capture);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_await<'ast, V>(v: &mut V, node: &'ast crate::ExprAwait)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*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<'ast, V>(v: &mut V, node: &'ast crate::ExprBinary)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.left);
- v.visit_bin_op(&node.op);
- v.visit_expr(&*node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_block<'ast, V>(v: &mut V, node: &'ast crate::ExprBlock)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_break<'ast, V>(v: &mut V, node: &'ast crate::ExprBreak)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.break_token);
- if let Some(it) = &node.label {
- v.visit_lifetime(it);
- }
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_call<'ast, V>(v: &mut V, node: &'ast crate::ExprCall)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.func);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_cast<'ast, V>(v: &mut V, node: &'ast crate::ExprCast)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.as_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_closure<'ast, V>(v: &mut V, node: &'ast crate::ExprClosure)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- skip!(node.constness);
- skip!(node.movability);
- skip!(node.asyncness);
- skip!(node.capture);
- skip!(node.or1_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_pat(it);
- }
- skip!(node.or2_token);
- v.visit_return_type(&node.output);
- v.visit_expr(&*node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_const<'ast, V>(v: &mut V, node: &'ast crate::ExprConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_continue<'ast, V>(v: &mut V, node: &'ast crate::ExprContinue)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.continue_token);
- if let Some(it) = &node.label {
- v.visit_lifetime(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_field<'ast, V>(v: &mut V, node: &'ast crate::ExprField)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.base);
- skip!(node.dot_token);
- v.visit_member(&node.member);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_for_loop<'ast, V>(v: &mut V, node: &'ast crate::ExprForLoop)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.for_token);
- v.visit_pat(&*node.pat);
- skip!(node.in_token);
- v.visit_expr(&*node.expr);
- v.visit_block(&node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_group<'ast, V>(v: &mut V, node: &'ast crate::ExprGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.group_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_if<'ast, V>(v: &mut V, node: &'ast crate::ExprIf)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.if_token);
- v.visit_expr(&*node.cond);
- v.visit_block(&node.then_branch);
- if let Some(it) = &node.else_branch {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_index<'ast, V>(v: &mut V, node: &'ast crate::ExprIndex)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.bracket_token);
- v.visit_expr(&*node.index);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_infer<'ast, V>(v: &mut V, node: &'ast crate::ExprInfer)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.underscore_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_let<'ast, V>(v: &mut V, node: &'ast crate::ExprLet)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.let_token);
- v.visit_pat(&*node.pat);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_lit<'ast, V>(v: &mut V, node: &'ast crate::ExprLit)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_lit(&node.lit);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_loop<'ast, V>(v: &mut V, node: &'ast crate::ExprLoop)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.loop_token);
- v.visit_block(&node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_macro<'ast, V>(v: &mut V, node: &'ast crate::ExprMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_match<'ast, V>(v: &mut V, node: &'ast crate::ExprMatch)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.match_token);
- v.visit_expr(&*node.expr);
- skip!(node.brace_token);
- for it in &node.arms {
- v.visit_arm(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_method_call<'ast, V>(v: &mut V, node: &'ast crate::ExprMethodCall)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.receiver);
- skip!(node.dot_token);
- v.visit_ident(&node.method);
- if let Some(it) = &node.turbofish {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_paren<'ast, V>(v: &mut V, node: &'ast crate::ExprParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_path<'ast, V>(v: &mut V, node: &'ast crate::ExprPath)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_range<'ast, V>(v: &mut V, node: &'ast crate::ExprRange)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.start {
- v.visit_expr(&**it);
- }
- v.visit_range_limits(&node.limits);
- if let Some(it) = &node.end {
- v.visit_expr(&**it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_raw_addr<'ast, V>(v: &mut V, node: &'ast crate::ExprRawAddr)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.raw);
- v.visit_pointer_mutability(&node.mutability);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_reference<'ast, V>(v: &mut V, node: &'ast crate::ExprReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_repeat<'ast, V>(v: &mut V, node: &'ast crate::ExprRepeat)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
- v.visit_expr(&*node.len);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_return<'ast, V>(v: &mut V, node: &'ast crate::ExprReturn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.return_token);
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_struct<'ast, V>(v: &mut V, node: &'ast crate::ExprStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.fields) {
- let it = el.value();
- v.visit_field_value(it);
- }
- skip!(node.dot2_token);
- if let Some(it) = &node.rest {
- v.visit_expr(&**it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try<'ast, V>(v: &mut V, node: &'ast crate::ExprTry)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.question_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try_block<'ast, V>(v: &mut V, node: &'ast crate::ExprTryBlock)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.try_token);
- v.visit_block(&node.block);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_tuple<'ast, V>(v: &mut V, node: &'ast crate::ExprTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_unary<'ast, V>(v: &mut V, node: &'ast crate::ExprUnary)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_un_op(&node.op);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_unsafe<'ast, V>(v: &mut V, node: &'ast crate::ExprUnsafe)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.unsafe_token);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_while<'ast, V>(v: &mut V, node: &'ast crate::ExprWhile)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.while_token);
- v.visit_expr(&*node.cond);
- v.visit_block(&node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_yield<'ast, V>(v: &mut V, node: &'ast crate::ExprYield)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.yield_token);
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field<'ast, V>(v: &mut V, node: &'ast crate::Field)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_field_mutability(&node.mutability);
- if let Some(it) = &node.ident {
- v.visit_ident(it);
- }
- skip!(node.colon_token);
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_mutability<'ast, V>(v: &mut V, node: &'ast crate::FieldMutability)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::FieldMutability::None => {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_field_pat<'ast, V>(v: &mut V, node: &'ast crate::FieldPat)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_member(&node.member);
- skip!(node.colon_token);
- v.visit_pat(&*node.pat);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_value<'ast, V>(v: &mut V, node: &'ast crate::FieldValue)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_member(&node.member);
- skip!(node.colon_token);
- v.visit_expr(&node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields<'ast, V>(v: &mut V, node: &'ast crate::Fields)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Fields::Named(_binding_0) => {
- v.visit_fields_named(_binding_0);
- }
- crate::Fields::Unnamed(_binding_0) => {
- v.visit_fields_unnamed(_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<'ast, V>(v: &mut V, node: &'ast crate::FieldsNamed)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.named) {
- let it = el.value();
- v.visit_field(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_unnamed<'ast, V>(v: &mut V, node: &'ast crate::FieldsUnnamed)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.unnamed) {
- let it = el.value();
- v.visit_field(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_file<'ast, V>(v: &mut V, node: &'ast crate::File)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.shebang);
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- for it in &node.items {
- v.visit_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_fn_arg<'ast, V>(v: &mut V, node: &'ast crate::FnArg)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- v.visit_receiver(_binding_0);
- }
- crate::FnArg::Typed(_binding_0) => {
- v.visit_pat_type(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item<'ast, V>(v: &mut V, node: &'ast crate::ForeignItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- v.visit_foreign_item_fn(_binding_0);
- }
- crate::ForeignItem::Static(_binding_0) => {
- v.visit_foreign_item_static(_binding_0);
- }
- crate::ForeignItem::Type(_binding_0) => {
- v.visit_foreign_item_type(_binding_0);
- }
- crate::ForeignItem::Macro(_binding_0) => {
- v.visit_foreign_item_macro(_binding_0);
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_signature(&node.sig);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_static<'ast, V>(
- v: &mut V,
- node: &'ast crate::ForeignItemStatic,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.static_token);
- v.visit_static_mutability(&node.mutability);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_type<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&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<'ast, V>(v: &mut V, node: &'ast crate::GenericArgument)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::GenericArgument::Type(_binding_0) => {
- v.visit_type(_binding_0);
- }
- crate::GenericArgument::Const(_binding_0) => {
- v.visit_expr(_binding_0);
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- v.visit_assoc_type(_binding_0);
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- v.visit_assoc_const(_binding_0);
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- v.visit_constraint(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast crate::GenericParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- v.visit_lifetime_param(_binding_0);
- }
- crate::GenericParam::Type(_binding_0) => {
- v.visit_type_param(_binding_0);
- }
- crate::GenericParam::Const(_binding_0) => {
- v.visit_const_param(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generics<'ast, V>(v: &mut V, node: &'ast crate::Generics)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.params) {
- let it = el.value();
- v.visit_generic_param(it);
- }
- skip!(node.gt_token);
- if let Some(it) = &node.where_clause {
- v.visit_where_clause(it);
- }
-}
-pub fn visit_ident<'ast, V>(v: &mut V, node: &'ast proc_macro2::Ident)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_span(&node.span());
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item<'ast, V>(v: &mut V, node: &'ast crate::ImplItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ImplItem::Const(_binding_0) => {
- v.visit_impl_item_const(_binding_0);
- }
- crate::ImplItem::Fn(_binding_0) => {
- v.visit_impl_item_fn(_binding_0);
- }
- crate::ImplItem::Type(_binding_0) => {
- v.visit_impl_item_type(_binding_0);
- }
- crate::ImplItem::Macro(_binding_0) => {
- v.visit_impl_item_macro(_binding_0);
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_const<'ast, V>(v: &mut V, node: &'ast crate::ImplItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- skip!(node.eq_token);
- v.visit_expr(&node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ImplItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- v.visit_signature(&node.sig);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ImplItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_type<'ast, V>(v: &mut V, node: &'ast crate::ImplItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- v.visit_type(&node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_restriction<'ast, V>(v: &mut V, node: &'ast crate::ImplRestriction)
-where
- V: Visit<'ast> + ?Sized,
-{
- match *node {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_index<'ast, V>(v: &mut V, node: &'ast crate::Index)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.index);
- v.visit_span(&node.span);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item<'ast, V>(v: &mut V, node: &'ast crate::Item)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Item::Const(_binding_0) => {
- v.visit_item_const(_binding_0);
- }
- crate::Item::Enum(_binding_0) => {
- v.visit_item_enum(_binding_0);
- }
- crate::Item::ExternCrate(_binding_0) => {
- v.visit_item_extern_crate(_binding_0);
- }
- crate::Item::Fn(_binding_0) => {
- v.visit_item_fn(_binding_0);
- }
- crate::Item::ForeignMod(_binding_0) => {
- v.visit_item_foreign_mod(_binding_0);
- }
- crate::Item::Impl(_binding_0) => {
- v.visit_item_impl(_binding_0);
- }
- crate::Item::Macro(_binding_0) => {
- v.visit_item_macro(_binding_0);
- }
- crate::Item::Mod(_binding_0) => {
- v.visit_item_mod(_binding_0);
- }
- crate::Item::Static(_binding_0) => {
- v.visit_item_static(_binding_0);
- }
- crate::Item::Struct(_binding_0) => {
- v.visit_item_struct(_binding_0);
- }
- crate::Item::Trait(_binding_0) => {
- v.visit_item_trait(_binding_0);
- }
- crate::Item::TraitAlias(_binding_0) => {
- v.visit_item_trait_alias(_binding_0);
- }
- crate::Item::Type(_binding_0) => {
- v.visit_item_type(_binding_0);
- }
- crate::Item::Union(_binding_0) => {
- v.visit_item_union(_binding_0);
- }
- crate::Item::Use(_binding_0) => {
- v.visit_item_use(_binding_0);
- }
- crate::Item::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_const<'ast, V>(v: &mut V, node: &'ast crate::ItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_enum<'ast, V>(v: &mut V, node: &'ast crate::ItemEnum)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.enum_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.variants) {
- let it = el.value();
- v.visit_variant(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_extern_crate<'ast, V>(v: &mut V, node: &'ast crate::ItemExternCrate)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.extern_token);
- skip!(node.crate_token);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.rename {
- skip!((it).0);
- v.visit_ident(&(it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_signature(&node.sig);
- v.visit_block(&*node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_foreign_mod<'ast, V>(v: &mut V, node: &'ast crate::ItemForeignMod)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.unsafety);
- v.visit_abi(&node.abi);
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_foreign_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_impl<'ast, V>(v: &mut V, node: &'ast crate::ItemImpl)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.defaultness);
- skip!(node.unsafety);
- skip!(node.impl_token);
- v.visit_generics(&node.generics);
- if let Some(it) = &node.trait_ {
- skip!((it).0);
- v.visit_path(&(it).1);
- skip!((it).2);
- }
- v.visit_type(&*node.self_ty);
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_impl_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.ident {
- v.visit_ident(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_mod<'ast, V>(v: &mut V, node: &'ast crate::ItemMod)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.unsafety);
- skip!(node.mod_token);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.content {
- skip!((it).0);
- for it in &(it).1 {
- v.visit_item(it);
- }
- }
- skip!(node.semi);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_static<'ast, V>(v: &mut V, node: &'ast crate::ItemStatic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.static_token);
- v.visit_static_mutability(&node.mutability);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_struct<'ast, V>(v: &mut V, node: &'ast crate::ItemStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.struct_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_fields(&node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait<'ast, V>(v: &mut V, node: &'ast crate::ItemTrait)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.unsafety);
- skip!(node.auto_token);
- if let Some(it) = &node.restriction {
- v.visit_impl_restriction(it);
- }
- skip!(node.trait_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.supertraits) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_trait_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait_alias<'ast, V>(v: &mut V, node: &'ast crate::ItemTraitAlias)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.trait_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_type<'ast, V>(v: &mut V, node: &'ast crate::ItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- v.visit_type(&*node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_union<'ast, V>(v: &mut V, node: &'ast crate::ItemUnion)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.union_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_fields_named(&node.fields);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_use<'ast, V>(v: &mut V, node: &'ast crate::ItemUse)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.use_token);
- skip!(node.leading_colon);
- v.visit_use_tree(&node.tree);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_label<'ast, V>(v: &mut V, node: &'ast crate::Label)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_lifetime(&node.name);
- skip!(node.colon_token);
-}
-pub fn visit_lifetime<'ast, V>(v: &mut V, node: &'ast crate::Lifetime)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_span(&node.apostrophe);
- v.visit_ident(&node.ident);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_lifetime_param<'ast, V>(v: &mut V, node: &'ast crate::LifetimeParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_lifetime(&node.lifetime);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_lifetime(it);
- }
-}
-pub fn visit_lit<'ast, V>(v: &mut V, node: &'ast crate::Lit)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Lit::Str(_binding_0) => {
- v.visit_lit_str(_binding_0);
- }
- crate::Lit::ByteStr(_binding_0) => {
- v.visit_lit_byte_str(_binding_0);
- }
- crate::Lit::CStr(_binding_0) => {
- v.visit_lit_cstr(_binding_0);
- }
- crate::Lit::Byte(_binding_0) => {
- v.visit_lit_byte(_binding_0);
- }
- crate::Lit::Char(_binding_0) => {
- v.visit_lit_char(_binding_0);
- }
- crate::Lit::Int(_binding_0) => {
- v.visit_lit_int(_binding_0);
- }
- crate::Lit::Float(_binding_0) => {
- v.visit_lit_float(_binding_0);
- }
- crate::Lit::Bool(_binding_0) => {
- v.visit_lit_bool(_binding_0);
- }
- crate::Lit::Verbatim(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-pub fn visit_lit_bool<'ast, V>(v: &mut V, node: &'ast crate::LitBool)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.value);
- v.visit_span(&node.span);
-}
-pub fn visit_lit_byte<'ast, V>(v: &mut V, node: &'ast crate::LitByte)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_byte_str<'ast, V>(v: &mut V, node: &'ast crate::LitByteStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_cstr<'ast, V>(v: &mut V, node: &'ast crate::LitCStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_char<'ast, V>(v: &mut V, node: &'ast crate::LitChar)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_float<'ast, V>(v: &mut V, node: &'ast crate::LitFloat)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_int<'ast, V>(v: &mut V, node: &'ast crate::LitInt)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_str<'ast, V>(v: &mut V, node: &'ast crate::LitStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local<'ast, V>(v: &mut V, node: &'ast crate::Local)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.let_token);
- v.visit_pat(&node.pat);
- if let Some(it) = &node.init {
- v.visit_local_init(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local_init<'ast, V>(v: &mut V, node: &'ast crate::LocalInit)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- if let Some(it) = &node.diverge {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro<'ast, V>(v: &mut V, node: &'ast crate::Macro)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- skip!(node.bang_token);
- v.visit_macro_delimiter(&node.delimiter);
- v.visit_token_stream(&node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro_delimiter<'ast, V>(v: &mut V, node: &'ast crate::MacroDelimiter)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::Member)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Member::Named(_binding_0) => {
- v.visit_ident(_binding_0);
- }
- crate::Member::Unnamed(_binding_0) => {
- v.visit_index(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta<'ast, V>(v: &mut V, node: &'ast crate::Meta)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Meta::Path(_binding_0) => {
- v.visit_path(_binding_0);
- }
- crate::Meta::List(_binding_0) => {
- v.visit_meta_list(_binding_0);
- }
- crate::Meta::NameValue(_binding_0) => {
- v.visit_meta_name_value(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_list<'ast, V>(v: &mut V, node: &'ast crate::MetaList)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- v.visit_macro_delimiter(&node.delimiter);
- v.visit_token_stream(&node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_name_value<'ast, V>(v: &mut V, node: &'ast crate::MetaNameValue)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- skip!(node.eq_token);
- v.visit_expr(&node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_parenthesized_generic_arguments<'ast, V>(
- v: &mut V,
- node: &'ast crate::ParenthesizedGenericArguments,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_type(it);
- }
- v.visit_return_type(&node.output);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat<'ast, V>(v: &mut V, node: &'ast crate::Pat)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Pat::Const(_binding_0) => {
- v.visit_expr_const(_binding_0);
- }
- crate::Pat::Ident(_binding_0) => {
- v.visit_pat_ident(_binding_0);
- }
- crate::Pat::Lit(_binding_0) => {
- v.visit_expr_lit(_binding_0);
- }
- crate::Pat::Macro(_binding_0) => {
- v.visit_expr_macro(_binding_0);
- }
- crate::Pat::Or(_binding_0) => {
- v.visit_pat_or(_binding_0);
- }
- crate::Pat::Paren(_binding_0) => {
- v.visit_pat_paren(_binding_0);
- }
- crate::Pat::Path(_binding_0) => {
- v.visit_expr_path(_binding_0);
- }
- crate::Pat::Range(_binding_0) => {
- v.visit_expr_range(_binding_0);
- }
- crate::Pat::Reference(_binding_0) => {
- v.visit_pat_reference(_binding_0);
- }
- crate::Pat::Rest(_binding_0) => {
- v.visit_pat_rest(_binding_0);
- }
- crate::Pat::Slice(_binding_0) => {
- v.visit_pat_slice(_binding_0);
- }
- crate::Pat::Struct(_binding_0) => {
- v.visit_pat_struct(_binding_0);
- }
- crate::Pat::Tuple(_binding_0) => {
- v.visit_pat_tuple(_binding_0);
- }
- crate::Pat::TupleStruct(_binding_0) => {
- v.visit_pat_tuple_struct(_binding_0);
- }
- crate::Pat::Type(_binding_0) => {
- v.visit_pat_type(_binding_0);
- }
- crate::Pat::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- crate::Pat::Wild(_binding_0) => {
- v.visit_pat_wild(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_ident<'ast, V>(v: &mut V, node: &'ast crate::PatIdent)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.by_ref);
- skip!(node.mutability);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.subpat {
- skip!((it).0);
- v.visit_pat(&*(it).1);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_or<'ast, V>(v: &mut V, node: &'ast crate::PatOr)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.leading_vert);
- for el in Punctuated::pairs(&node.cases) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_paren<'ast, V>(v: &mut V, node: &'ast crate::PatParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- v.visit_pat(&*node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_reference<'ast, V>(v: &mut V, node: &'ast crate::PatReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_pat(&*node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_rest<'ast, V>(v: &mut V, node: &'ast crate::PatRest)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.dot2_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_slice<'ast, V>(v: &mut V, node: &'ast crate::PatSlice)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_struct<'ast, V>(v: &mut V, node: &'ast crate::PatStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.fields) {
- let it = el.value();
- v.visit_field_pat(it);
- }
- if let Some(it) = &node.rest {
- v.visit_pat_rest(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple<'ast, V>(v: &mut V, node: &'ast crate::PatTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple_struct<'ast, V>(v: &mut V, node: &'ast crate::PatTupleStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_type<'ast, V>(v: &mut V, node: &'ast crate::PatType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_pat(&*node.pat);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_wild<'ast, V>(v: &mut V, node: &'ast crate::PatWild)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.underscore_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path<'ast, V>(v: &mut V, node: &'ast crate::Path)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.leading_colon);
- for el in Punctuated::pairs(&node.segments) {
- let it = el.value();
- v.visit_path_segment(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_arguments<'ast, V>(v: &mut V, node: &'ast crate::PathArguments)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::PathArguments::None => {}
- crate::PathArguments::AngleBracketed(_binding_0) => {
- v.visit_angle_bracketed_generic_arguments(_binding_0);
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- v.visit_parenthesized_generic_arguments(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_segment<'ast, V>(v: &mut V, node: &'ast crate::PathSegment)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- v.visit_path_arguments(&node.arguments);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pointer_mutability<'ast, V>(v: &mut V, node: &'ast crate::PointerMutability)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::PreciseCapture)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.use_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.params) {
- let it = el.value();
- v.visit_captured_param(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<'ast, V>(v: &mut V, node: &'ast crate::PredicateLifetime)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_lifetime(&node.lifetime);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_lifetime(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_predicate_type<'ast, V>(v: &mut V, node: &'ast crate::PredicateType)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- v.visit_type(&node.bounded_ty);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_qself<'ast, V>(v: &mut V, node: &'ast crate::QSelf)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.lt_token);
- v.visit_type(&*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<'ast, V>(v: &mut V, node: &'ast crate::RangeLimits)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::Receiver)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.reference {
- skip!((it).0);
- if let Some(it) = &(it).1 {
- v.visit_lifetime(it);
- }
- }
- skip!(node.mutability);
- skip!(node.self_token);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_return_type<'ast, V>(v: &mut V, node: &'ast crate::ReturnType)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ReturnType::Default => {}
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- skip!(_binding_0);
- v.visit_type(&**_binding_1);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_signature<'ast, V>(v: &mut V, node: &'ast crate::Signature)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.constness);
- skip!(node.asyncness);
- skip!(node.unsafety);
- if let Some(it) = &node.abi {
- v.visit_abi(it);
- }
- skip!(node.fn_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_fn_arg(it);
- }
- if let Some(it) = &node.variadic {
- v.visit_variadic(it);
- }
- v.visit_return_type(&node.output);
-}
-pub fn visit_span<'ast, V>(v: &mut V, node: &proc_macro2::Span)
-where
- V: Visit<'ast> + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_static_mutability<'ast, V>(v: &mut V, node: &'ast crate::StaticMutability)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::Stmt)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Stmt::Local(_binding_0) => {
- v.visit_local(_binding_0);
- }
- crate::Stmt::Item(_binding_0) => {
- v.visit_item(_binding_0);
- }
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- v.visit_expr(_binding_0);
- skip!(_binding_1);
- }
- crate::Stmt::Macro(_binding_0) => {
- v.visit_stmt_macro(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_stmt_macro<'ast, V>(v: &mut V, node: &'ast crate::StmtMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&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<'ast, V>(v: &mut V, node: &'ast crate::TraitBound)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_trait_bound_modifier(&node.modifier);
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_trait_bound_modifier<'ast, V>(
- v: &mut V,
- node: &'ast crate::TraitBoundModifier,
-)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::TraitItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::TraitItem::Const(_binding_0) => {
- v.visit_trait_item_const(_binding_0);
- }
- crate::TraitItem::Fn(_binding_0) => {
- v.visit_trait_item_fn(_binding_0);
- }
- crate::TraitItem::Type(_binding_0) => {
- v.visit_trait_item_type(_binding_0);
- }
- crate::TraitItem::Macro(_binding_0) => {
- v.visit_trait_item_macro(_binding_0);
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_const<'ast, V>(v: &mut V, node: &'ast crate::TraitItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- if let Some(it) = &node.default {
- skip!((it).0);
- v.visit_expr(&(it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_fn<'ast, V>(v: &mut V, node: &'ast crate::TraitItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_signature(&node.sig);
- if let Some(it) = &node.default {
- v.visit_block(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_macro<'ast, V>(v: &mut V, node: &'ast crate::TraitItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_type<'ast, V>(v: &mut V, node: &'ast crate::TraitItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- if let Some(it) = &node.default {
- skip!((it).0);
- v.visit_type(&(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<'ast, V>(v: &mut V, node: &'ast crate::Type)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Type::Array(_binding_0) => {
- v.visit_type_array(_binding_0);
- }
- crate::Type::BareFn(_binding_0) => {
- v.visit_type_bare_fn(_binding_0);
- }
- crate::Type::Group(_binding_0) => {
- v.visit_type_group(_binding_0);
- }
- crate::Type::ImplTrait(_binding_0) => {
- v.visit_type_impl_trait(_binding_0);
- }
- crate::Type::Infer(_binding_0) => {
- v.visit_type_infer(_binding_0);
- }
- crate::Type::Macro(_binding_0) => {
- v.visit_type_macro(_binding_0);
- }
- crate::Type::Never(_binding_0) => {
- v.visit_type_never(_binding_0);
- }
- crate::Type::Paren(_binding_0) => {
- v.visit_type_paren(_binding_0);
- }
- crate::Type::Path(_binding_0) => {
- v.visit_type_path(_binding_0);
- }
- crate::Type::Ptr(_binding_0) => {
- v.visit_type_ptr(_binding_0);
- }
- crate::Type::Reference(_binding_0) => {
- v.visit_type_reference(_binding_0);
- }
- crate::Type::Slice(_binding_0) => {
- v.visit_type_slice(_binding_0);
- }
- crate::Type::TraitObject(_binding_0) => {
- v.visit_type_trait_object(_binding_0);
- }
- crate::Type::Tuple(_binding_0) => {
- v.visit_type_tuple(_binding_0);
- }
- crate::Type::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_array<'ast, V>(v: &mut V, node: &'ast crate::TypeArray)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type(&*node.elem);
- skip!(node.semi_token);
- v.visit_expr(&node.len);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_bare_fn<'ast, V>(v: &mut V, node: &'ast crate::TypeBareFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- skip!(node.unsafety);
- if let Some(it) = &node.abi {
- v.visit_abi(it);
- }
- skip!(node.fn_token);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_bare_fn_arg(it);
- }
- if let Some(it) = &node.variadic {
- v.visit_bare_variadic(it);
- }
- v.visit_return_type(&node.output);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_group<'ast, V>(v: &mut V, node: &'ast crate::TypeGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.group_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_impl_trait<'ast, V>(v: &mut V, node: &'ast crate::TypeImplTrait)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.impl_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_infer<'ast, V>(v: &mut V, node: &'ast crate::TypeInfer)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::TypeMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_macro(&node.mac);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_never<'ast, V>(v: &mut V, node: &'ast crate::TypeNever)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::TypeParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.eq_token);
- if let Some(it) = &node.default {
- v.visit_type(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_param_bound<'ast, V>(v: &mut V, node: &'ast crate::TypeParamBound)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- v.visit_trait_bound(_binding_0);
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- full!(v.visit_precise_capture(_binding_0));
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_paren<'ast, V>(v: &mut V, node: &'ast crate::TypeParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_path<'ast, V>(v: &mut V, node: &'ast crate::TypePath)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_ptr<'ast, V>(v: &mut V, node: &'ast crate::TypePtr)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.star_token);
- skip!(node.const_token);
- skip!(node.mutability);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_reference<'ast, V>(v: &mut V, node: &'ast crate::TypeReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.and_token);
- if let Some(it) = &node.lifetime {
- v.visit_lifetime(it);
- }
- skip!(node.mutability);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_slice<'ast, V>(v: &mut V, node: &'ast crate::TypeSlice)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_trait_object<'ast, V>(v: &mut V, node: &'ast crate::TypeTraitObject)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.dyn_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_tuple<'ast, V>(v: &mut V, node: &'ast crate::TypeTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_type(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_un_op<'ast, V>(v: &mut V, node: &'ast crate::UnOp)
-where
- V: Visit<'ast> + ?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<'ast, V>(v: &mut V, node: &'ast crate::UseGlob)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.star_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_group<'ast, V>(v: &mut V, node: &'ast crate::UseGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.items) {
- let it = el.value();
- v.visit_use_tree(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_name<'ast, V>(v: &mut V, node: &'ast crate::UseName)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_path<'ast, V>(v: &mut V, node: &'ast crate::UsePath)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- skip!(node.colon2_token);
- v.visit_use_tree(&*node.tree);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_rename<'ast, V>(v: &mut V, node: &'ast crate::UseRename)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- skip!(node.as_token);
- v.visit_ident(&node.rename);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_tree<'ast, V>(v: &mut V, node: &'ast crate::UseTree)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::UseTree::Path(_binding_0) => {
- v.visit_use_path(_binding_0);
- }
- crate::UseTree::Name(_binding_0) => {
- v.visit_use_name(_binding_0);
- }
- crate::UseTree::Rename(_binding_0) => {
- v.visit_use_rename(_binding_0);
- }
- crate::UseTree::Glob(_binding_0) => {
- v.visit_use_glob(_binding_0);
- }
- crate::UseTree::Group(_binding_0) => {
- v.visit_use_group(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_variadic<'ast, V>(v: &mut V, node: &'ast crate::Variadic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.pat {
- v.visit_pat(&*(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<'ast, V>(v: &mut V, node: &'ast crate::Variant)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_ident(&node.ident);
- v.visit_fields(&node.fields);
- if let Some(it) = &node.discriminant {
- skip!((it).0);
- v.visit_expr(&(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_vis_restricted<'ast, V>(v: &mut V, node: &'ast crate::VisRestricted)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.pub_token);
- skip!(node.paren_token);
- skip!(node.in_token);
- v.visit_path(&*node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_visibility<'ast, V>(v: &mut V, node: &'ast crate::Visibility)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Visibility::Public(_binding_0) => {
- skip!(_binding_0);
- }
- crate::Visibility::Restricted(_binding_0) => {
- v.visit_vis_restricted(_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<'ast, V>(v: &mut V, node: &'ast crate::WhereClause)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.where_token);
- for el in Punctuated::pairs(&node.predicates) {
- let it = el.value();
- v.visit_where_predicate(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_where_predicate<'ast, V>(v: &mut V, node: &'ast crate::WherePredicate)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- v.visit_predicate_lifetime(_binding_0);
- }
- crate::WherePredicate::Type(_binding_0) => {
- v.visit_predicate_type(_binding_0);
- }
- }
-}
diff --git a/vendor/syn/src/gen/visit_mut.rs b/vendor/syn/src/gen/visit_mut.rs
deleted file mode 100644
index 2bbd6895..00000000
--- a/vendor/syn/src/gen/visit_mut.rs
+++ /dev/null
@@ -1,3759 +0,0 @@
-// 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);
- }
- }
-}