pub struct Enum {
pub generics: Generics,
pub has_stripped_variants: bool,
pub variants: Vec<Id>,
pub impls: Vec<Id>,
}Expand description
An enum.
Fields§
§generics: GenericsInformation about the type parameters and where clauses of the enum.
has_stripped_variants: boolWhether any variants have been removed from the result, due to being private or hidden.
variants: Vec<Id>The list of variants in the enum.
All of the corresponding Items are of kind ItemEnum::Variant
impls: Vec<Id>impls for the enum.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Enum
impl<'de> Deserialize<'de> for Enum
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Enum
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Forget for Enum
impl Freeze for Enumwhere
*const u8 is !null: Freeze,
PhantomData<GenericParamDef>: Freeze,
PhantomData<WherePredicate>: Freeze,
PhantomData<Id>: Freeze,
impl Move for Enum
impl RefUnwindSafe for Enum
impl Send for Enumwhere
RawVecInner: Send,
BoxRaw<GenericArgs>: Send,
BoxRaw<FunctionPointer>: Send,
BoxRaw<Type>: Send,
impl Sync for Enumwhere
RawVecInner: Sync,
BoxRaw<GenericArgs>: Sync,
BoxRaw<FunctionPointer>: Sync,
BoxRaw<Type>: Sync,
impl Unpin for Enum
impl UnsafeUnpin for Enumwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<GenericParamDef>: UnsafeUnpin,
PhantomData<WherePredicate>: UnsafeUnpin,
PhantomData<Id>: UnsafeUnpin,
impl UnwindSafe for Enumwhere
RawVecInner: UnwindSafe,
BoxRaw<GenericArgs>: UnwindSafe,
BoxRaw<FunctionPointer>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 104 bytes