rust/syn/gen/eq.rs
Source file repositories/reference/linux-study-clean/rust/syn/gen/eq.rs
File Facts
- System
- Linux kernel
- Corpus path
rust/syn/gen/eq.rs- Extension
.rs- Size
- 93199 bytes
- Lines
- 2309
- Domain
- Rust Kernel Layer
- Bucket
- Rust API Membrane
- Inferred role
- Rust Kernel Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.
- Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
function eq
Annotated Snippet
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 {}
Annotation
- Detected declarations: `function eq`.
- Atlas domain: Rust Kernel Layer / Rust API Membrane.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.