Struct ra_ap_hir_def::EnumId [−][src]
pub struct EnumId(_);
Trait Implementations
impl ChildBySource for EnumId
[src]
impl ChildBySource for EnumId
[src]fn child_by_source_to(&self, db: &dyn DefDatabase, res: &mut DynMap)
[src]
fn child_by_source(&self, db: &dyn DefDatabase) -> DynMap
[src]
impl From<EnumId> for ModuleDefId
[src]
impl From<EnumId> for ModuleDefId
[src]fn from(it: EnumId) -> ModuleDefId
[src]
fn from(it: EnumId) -> ModuleDefId
[src]Performs the conversion.
impl From<EnumId> for GenericDefId
[src]
impl From<EnumId> for GenericDefId
[src]fn from(it: EnumId) -> GenericDefId
[src]
fn from(it: EnumId) -> GenericDefId
[src]Performs the conversion.
impl HasChildSource<Idx<EnumVariantData>> for EnumId
[src]
impl HasChildSource<Idx<EnumVariantData>> for EnumId
[src]type Value = Variant
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalEnumVariantId, Self::Value>>
[src]
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalEnumVariantId, Self::Value>>
impl InternKey for EnumId
[src]
impl InternKey for EnumId
[src]fn from_intern_id(v: InternId) -> Self
[src]
fn from_intern_id(v: InternId) -> Self
[src]Create an instance of the intern-key from a u32
value.
fn as_intern_id(&self) -> InternId
[src]
fn as_intern_id(&self) -> InternId
[src]Extract the u32
with which the intern-key was created.
impl Ord for EnumId
[src]
impl Ord for EnumId
[src]impl PartialOrd<EnumId> for EnumId
[src]
impl PartialOrd<EnumId> for EnumId
[src]fn partial_cmp(&self, other: &EnumId) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EnumId) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for EnumId
[src]
impl Eq for EnumId
[src]
impl StructuralEq for EnumId
[src]
impl StructuralPartialEq for EnumId
[src]
Auto Trait Implementations
impl RefUnwindSafe for EnumId
impl Send for EnumId
impl Sync for EnumId
impl Unpin for EnumId
impl UnwindSafe for EnumId
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> HasResolver for T where
T: Into<AdtId> + Copy,
[src]
impl<T> HasResolver for T where
T: Into<AdtId> + Copy,
[src]pub fn resolver(Self, &dyn DefDatabase) -> Resolver
[src]
pub fn resolver(Self, &dyn DefDatabase) -> Resolver
[src]Builds a resolver for type references inside this def.
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,