pub struct UnionData<'types> {
pub meta: &'types UnionMeta,
pub type_ident: Ident,
pub variants: Vec<UnionTypeVariant<'types>>,
pub trait_impls: Vec<TokenStream>,
}
Expand description
Contains additional information for the rendering process of a
MetaTypeVariant::Union
type.
Fields§
§meta: &'types UnionMeta
Reference to the original type information.
type_ident: Ident
The identifier of the rendered type.
variants: Vec<UnionTypeVariant<'types>>
List of variants contained in this union.
trait_impls: Vec<TokenStream>
List of traits that needs to be implemented by this type.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for UnionData<'types>
impl<'types> RefUnwindSafe for UnionData<'types>
impl<'types> !Send for UnionData<'types>
impl<'types> !Sync for UnionData<'types>
impl<'types> Unpin for UnionData<'types>
impl<'types> UnwindSafe for UnionData<'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