// SPDX-License-Identifier: Apache-2.0 OR MIT // 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.bodyLines 1–500 of 2308. Load more
// SPDX-License-Identifier: Apache-2.0 OR MIT // 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