pub struct EnumerationData<'types> {
pub meta: &'types EnumerationMeta,
pub constrains: ConstrainsData<'types>,
pub type_ident: Ident,
pub variants: Vec<EnumerationTypeVariant<'types>>,
pub trait_impls: Vec<TokenStream>,
}Expand description
Contains additional information for the rendering process of a
MetaTypeVariant::Enumeration
type.
Fields§
§meta: &'types EnumerationMetaReference to the original type information.
constrains: ConstrainsData<'types>Code generator data for the constrains of the type.
type_ident: IdentThe identifier of the rendered type.
variants: Vec<EnumerationTypeVariant<'types>>List of variants of this enumeration.
trait_impls: Vec<TokenStream>List of traits that needs to be implemented by this type.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for EnumerationData<'types>
impl<'types> RefUnwindSafe for EnumerationData<'types>
impl<'types> !Send for EnumerationData<'types>
impl<'types> !Sync for EnumerationData<'types>
impl<'types> Unpin for EnumerationData<'types>
impl<'types> UnwindSafe for EnumerationData<'types>
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