pub struct BodyOwner {
pub kind: BodyOwnerKind,
pub ordinal: u32,
}Expand description
Stable key for a body in the per-file body registry.
The ordinal disambiguates multiple anonymous subroutines or method bodies with the same name in one file.
Fields§
§kind: BodyOwnerKindWhat owns this body.
ordinal: u32Zero-based ordinal for disambiguation within one file.
Implementations§
Trait Implementations§
impl Eq for BodyOwner
Source§impl Ord for BodyOwner
impl Ord for BodyOwner
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BodyOwner
impl PartialOrd for BodyOwner
impl StructuralPartialEq for BodyOwner
Auto Trait Implementations§
impl Freeze for BodyOwner
impl RefUnwindSafe for BodyOwner
impl Send for BodyOwner
impl Sync for BodyOwner
impl Unpin for BodyOwner
impl UnsafeUnpin for BodyOwner
impl UnwindSafe for BodyOwner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more