pub enum UseOwner {
CrateRoot,
Def(u32),
}Expand description
Scope owning a UseEntry (CrateRoot = 0, Def(def_index) = def_index + 1).
Variants§
CrateRoot
Crate root module (lib.rs / main.rs, or core / alloc / std root).
Def(u32)
Enclosing DefEntry index (DefKind::Mod for submodules, or item/fn scope for local use).
Implementations§
Trait Implementations§
impl Copy for UseOwner
impl Eq for UseOwner
Source§impl Ord for UseOwner
impl Ord for UseOwner
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 PartialOrd for UseOwner
impl PartialOrd for UseOwner
impl StructuralPartialEq for UseOwner
Auto Trait Implementations§
impl Forget for UseOwner
impl Freeze for UseOwner
impl Move for UseOwner
impl RefUnwindSafe for UseOwner
impl Send for UseOwner
impl Sync for UseOwner
impl Unpin for UseOwner
impl UnsafeUnpin for UseOwner
impl UnwindSafe for UseOwner
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