Enum ra_ap_hir_def::AttrDefId [−][src]
pub enum AttrDefId { ModuleId(ModuleId), FieldId(FieldId), AdtId(AdtId), FunctionId(FunctionId), EnumVariantId(EnumVariantId), StaticId(StaticId), ConstId(ConstId), TraitId(TraitId), TypeAliasId(TypeAliasId), MacroDefId(MacroDefId), ImplId(ImplId), GenericParamId(GenericParamId), }
Variants
ModuleId(ModuleId)
FieldId(FieldId)
AdtId(AdtId)
FunctionId(FunctionId)
EnumVariantId(EnumVariantId)
StaticId(StaticId)
ConstId(ConstId)
TraitId(TraitId)
TypeAliasId(TypeAliasId)
MacroDefId(MacroDefId)
ImplId(ImplId)
GenericParamId(GenericParamId)
Implementations
Trait Implementations
impl From<AssocContainerId> for AttrDefId
[src]
impl From<AssocContainerId> for AttrDefId
[src]fn from(acid: AssocContainerId) -> Self
[src]
fn from(acid: AssocContainerId) -> Self
[src]Performs the conversion.
impl From<EnumVariantId> for AttrDefId
[src]
impl From<EnumVariantId> for AttrDefId
[src]fn from(it: EnumVariantId) -> AttrDefId
[src]
fn from(it: EnumVariantId) -> AttrDefId
[src]Performs the conversion.
impl From<FunctionId> for AttrDefId
[src]
impl From<FunctionId> for AttrDefId
[src]fn from(it: FunctionId) -> AttrDefId
[src]
fn from(it: FunctionId) -> AttrDefId
[src]Performs the conversion.
impl From<GenericParamId> for AttrDefId
[src]
impl From<GenericParamId> for AttrDefId
[src]fn from(it: GenericParamId) -> AttrDefId
[src]
fn from(it: GenericParamId) -> AttrDefId
[src]Performs the conversion.
impl From<MacroDefId> for AttrDefId
[src]
impl From<MacroDefId> for AttrDefId
[src]fn from(it: MacroDefId) -> AttrDefId
[src]
fn from(it: MacroDefId) -> AttrDefId
[src]Performs the conversion.
impl From<TypeAliasId> for AttrDefId
[src]
impl From<TypeAliasId> for AttrDefId
[src]fn from(it: TypeAliasId) -> AttrDefId
[src]
fn from(it: TypeAliasId) -> AttrDefId
[src]Performs the conversion.
impl Copy for AttrDefId
[src]
impl Eq for AttrDefId
[src]
impl StructuralEq for AttrDefId
[src]
impl StructuralPartialEq for AttrDefId
[src]
Auto Trait Implementations
impl RefUnwindSafe for AttrDefId
impl Send for AttrDefId
impl Sync for AttrDefId
impl Unpin for AttrDefId
impl UnwindSafe for AttrDefId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
[src]
T: Any + Clone,