pub(crate) enum AttrInheritContext {
Variant,
Type,
MethodOrImplFromModule,
MethodFromImpl,
Module,
}
Variants§
Variant
Type
MethodOrImplFromModule
When a method or an impl is inheriting from a module
MethodFromImpl
When a method is inheriting from an impl
This distinction is made because HIR attributes are pre-inherited from the impl to the method, so the boundary of “method inheriting from module” is different
Module
Trait Implementations§
source§impl Clone for AttrInheritContext
impl Clone for AttrInheritContext
source§fn clone(&self) -> AttrInheritContext
fn clone(&self) -> AttrInheritContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Ord for AttrInheritContext
impl Ord for AttrInheritContext
source§fn cmp(&self, other: &AttrInheritContext) -> Ordering
fn cmp(&self, other: &AttrInheritContext) -> Ordering
1.21.0 · 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 PartialEq for AttrInheritContext
impl PartialEq for AttrInheritContext
source§impl PartialOrd for AttrInheritContext
impl PartialOrd for AttrInheritContext
impl Copy for AttrInheritContext
impl Eq for AttrInheritContext
impl StructuralPartialEq for AttrInheritContext
Auto Trait Implementations§
impl Freeze for AttrInheritContext
impl RefUnwindSafe for AttrInheritContext
impl Send for AttrInheritContext
impl Sync for AttrInheritContext
impl Unpin for AttrInheritContext
impl UnwindSafe for AttrInheritContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)