Enum rustc_metadata::rmeta::AssocContainer
source · [−]enum AssocContainer {
TraitRequired,
TraitWithDefault,
ImplDefault,
ImplFinal,
}Expand description
Describes whether the container of an associated item is a trait or an impl and whether, in a trait, it has a default, or an in impl, whether it’s marked “default”.
Variants
TraitRequired
TraitWithDefault
ImplDefault
ImplFinal
Implementations
sourceimpl AssocContainer
impl AssocContainer
fn with_def_id(&self, def_id: DefId) -> AssocItemContainer
fn defaultness(&self) -> Defaultness
Trait Implementations
sourceimpl Clone for AssocContainer
impl Clone for AssocContainer
sourcefn clone(&self) -> AssocContainer
fn clone(&self) -> AssocContainer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for AssocContainer
impl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for AssocContainer
sourceimpl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for AssocContainer
impl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for AssocContainer
impl Copy for AssocContainer
Auto Trait Implementations
impl RefUnwindSafe for AssocContainer
impl Send for AssocContainer
impl Sync for AssocContainer
impl Unpin for AssocContainer
impl UnwindSafe for AssocContainer
Blanket Implementations
sourceimpl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
TraitRequired: 0 bytesTraitWithDefault: 0 bytesImplDefault: 0 bytesImplFinal: 0 bytes