pub enum GenericOwner {
Def(u32),
Impl(u32),
}Expand description
Owner of a GenericParamEntry or WherePredEntry row (DefEntry or ImplEntry).
Variants§
Def(u32)
Local DefEntry index (0..2^31).
Impl(u32)
Shard ImplEntry index (0..impls().len()), including metadata-only sysroot impls.
Implementations§
Trait Implementations§
Source§impl Clone for GenericOwner
impl Clone for GenericOwner
impl Copy for GenericOwner
Source§impl Debug for GenericOwner
impl Debug for GenericOwner
impl Eq for GenericOwner
Source§impl Hash for GenericOwner
impl Hash for GenericOwner
Source§impl Ord for GenericOwner
impl Ord for GenericOwner
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GenericOwner
impl PartialEq for GenericOwner
Source§impl PartialOrd for GenericOwner
impl PartialOrd for GenericOwner
impl StructuralPartialEq for GenericOwner
Auto Trait Implementations§
impl Forget for GenericOwner
impl Freeze for GenericOwner
impl Move for GenericOwner
impl RefUnwindSafe for GenericOwner
impl Send for GenericOwner
impl Sync for GenericOwner
impl Unpin for GenericOwner
impl UnsafeUnpin for GenericOwner
impl UnwindSafe for GenericOwner
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