Enum ra_ap_hir_def::VariantId [−][src]
pub enum VariantId { EnumVariantId(EnumVariantId), StructId(StructId), UnionId(UnionId), }
Variants
EnumVariantId(EnumVariantId)
StructId(StructId)
UnionId(UnionId)
Implementations
impl VariantId
[src]
impl VariantId
[src]pub fn variant_data(self, db: &dyn DefDatabase) -> Arc<VariantData>
[src]
pub fn file_id(self, db: &dyn DefDatabase) -> HirFileId
[src]
pub fn adt_id(self) -> AdtId
[src]
Trait Implementations
impl ChildBySource for VariantId
[src]
impl ChildBySource for VariantId
[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<EnumVariantId> for VariantId
[src]
impl From<EnumVariantId> for VariantId
[src]fn from(it: EnumVariantId) -> VariantId
[src]
fn from(it: EnumVariantId) -> VariantId
[src]Performs the conversion.
impl HasChildSource<Idx<FieldData>> for VariantId
[src]
impl HasChildSource<Idx<FieldData>> for VariantId
[src]type Value = Either<TupleField, RecordField>
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalFieldId, Self::Value>>
[src]
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalFieldId, Self::Value>>
impl HasResolver for VariantId
[src]
impl HasResolver for VariantId
[src]fn resolver(self, db: &dyn DefDatabase) -> Resolver
[src]
fn resolver(self, db: &dyn DefDatabase) -> Resolver
[src]Builds a resolver for type references inside this def.
impl Copy for VariantId
[src]
impl Eq for VariantId
[src]
impl StructuralEq for VariantId
[src]
impl StructuralPartialEq for VariantId
[src]
Auto Trait Implementations
impl RefUnwindSafe for VariantId
impl Send for VariantId
impl Sync for VariantId
impl Unpin for VariantId
impl UnwindSafe for VariantId
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,