Enum hir_def::item_tree::GenericModItem
source · pub enum GenericModItem {
Function(FileItemTreeId<Function>),
Struct(FileItemTreeId<Struct>),
Union(FileItemTreeId<Union>),
Enum(FileItemTreeId<Enum>),
Trait(FileItemTreeId<Trait>),
TraitAlias(FileItemTreeId<TraitAlias>),
Impl(FileItemTreeId<Impl>),
TypeAlias(FileItemTreeId<TypeAlias>),
}
Variants§
Function(FileItemTreeId<Function>)
Struct(FileItemTreeId<Struct>)
Union(FileItemTreeId<Union>)
Enum(FileItemTreeId<Enum>)
Trait(FileItemTreeId<Trait>)
TraitAlias(FileItemTreeId<TraitAlias>)
Impl(FileItemTreeId<Impl>)
TypeAlias(FileItemTreeId<TypeAlias>)
Implementations§
Trait Implementations§
source§impl Clone for GenericModItem
impl Clone for GenericModItem
source§fn clone(&self) -> GenericModItem
fn clone(&self) -> GenericModItem
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 Debug for GenericModItem
impl Debug for GenericModItem
source§impl From<FileItemTreeId<Enum>> for GenericModItem
impl From<FileItemTreeId<Enum>> for GenericModItem
source§fn from(id: FileItemTreeId<Enum>) -> GenericModItem
fn from(id: FileItemTreeId<Enum>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<Function>> for GenericModItem
impl From<FileItemTreeId<Function>> for GenericModItem
source§fn from(id: FileItemTreeId<Function>) -> GenericModItem
fn from(id: FileItemTreeId<Function>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<Impl>> for GenericModItem
impl From<FileItemTreeId<Impl>> for GenericModItem
source§fn from(id: FileItemTreeId<Impl>) -> GenericModItem
fn from(id: FileItemTreeId<Impl>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<Struct>> for GenericModItem
impl From<FileItemTreeId<Struct>> for GenericModItem
source§fn from(id: FileItemTreeId<Struct>) -> GenericModItem
fn from(id: FileItemTreeId<Struct>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<Trait>> for GenericModItem
impl From<FileItemTreeId<Trait>> for GenericModItem
source§fn from(id: FileItemTreeId<Trait>) -> GenericModItem
fn from(id: FileItemTreeId<Trait>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<TraitAlias>> for GenericModItem
impl From<FileItemTreeId<TraitAlias>> for GenericModItem
source§fn from(id: FileItemTreeId<TraitAlias>) -> GenericModItem
fn from(id: FileItemTreeId<TraitAlias>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<TypeAlias>> for GenericModItem
impl From<FileItemTreeId<TypeAlias>> for GenericModItem
source§fn from(id: FileItemTreeId<TypeAlias>) -> GenericModItem
fn from(id: FileItemTreeId<TypeAlias>) -> GenericModItem
Converts to this type from the input type.
source§impl From<FileItemTreeId<Union>> for GenericModItem
impl From<FileItemTreeId<Union>> for GenericModItem
source§fn from(id: FileItemTreeId<Union>) -> GenericModItem
fn from(id: FileItemTreeId<Union>) -> GenericModItem
Converts to this type from the input type.
source§impl From<GenericModItem> for AttrOwner
impl From<GenericModItem> for AttrOwner
source§fn from(t: GenericModItem) -> AttrOwner
fn from(t: GenericModItem) -> AttrOwner
Converts to this type from the input type.
source§impl From<GenericModItem> for ModItem
impl From<GenericModItem> for ModItem
source§fn from(id: GenericModItem) -> ModItem
fn from(id: GenericModItem) -> ModItem
Converts to this type from the input type.
source§impl Hash for GenericModItem
impl Hash for GenericModItem
source§impl PartialEq for GenericModItem
impl PartialEq for GenericModItem
impl Copy for GenericModItem
impl Eq for GenericModItem
impl StructuralPartialEq for GenericModItem
Auto Trait Implementations§
impl Freeze for GenericModItem
impl RefUnwindSafe for GenericModItem
impl Send for GenericModItem
impl Sync for GenericModItem
impl Unpin for GenericModItem
impl UnwindSafe for GenericModItem
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more