[−][src]Enum rustc_codegen_llvm::debuginfo::metadata::VariantInfo
Variants
Adt(&'tcx VariantDef)Fields of Generator
def_id: DefIdgenerator_layout: &'tcx GeneratorLayout<'tcx>generator_saved_local_names: &'a IndexVec<GeneratorSavedLocal, Option<Symbol>>variant_index: VariantIdxImplementations
impl<'tcx, '_> VariantInfo<'_, 'tcx>[src]
pub(in debuginfo::metadata) fn map_struct_name<R>(
&self,
f: impl FnOnce(&str) -> R
) -> R[src]
&self,
f: impl FnOnce(&str) -> R
) -> R
pub(in debuginfo::metadata) fn variant_name(
&self
) -> String[src]
&self
) -> String
pub(in debuginfo::metadata) fn field_name(
&self,
i: usize
) -> String[src]
&self,
i: usize
) -> String
pub(in debuginfo::metadata) fn source_info<'ll>(
&self,
cx: &CodegenCx<'ll, 'tcx>
) -> Option<SourceInfo<'ll>>[src]
&self,
cx: &CodegenCx<'ll, 'tcx>
) -> Option<SourceInfo<'ll>>
pub(in debuginfo::metadata) fn is_artificial(
&self
) -> bool[src]
&self
) -> bool
Trait Implementations
impl<'a, 'tcx> Clone for VariantInfo<'a, 'tcx>[src]
pub fn clone(&self) -> VariantInfo<'a, 'tcx>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a, 'tcx> Copy for VariantInfo<'a, 'tcx>[src]
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !Send for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !Sync for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> Unpin for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for VariantInfo<'a, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,