pub struct UnionTypeVariant<'types> {
pub info: &'types UnionTypeInfo,
pub target_type: IdentPath,
pub variant_ident: Ident,
}Expand description
Type variant used in UnionType.
Fields§
§info: &'types UnionTypeInfoReference to the original type information.
target_type: IdentPathThe type that is stored by the this variant.
variant_ident: IdentIdentifier of this variant.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for UnionTypeVariant<'types>
impl<'types> RefUnwindSafe for UnionTypeVariant<'types>
impl<'types> !Send for UnionTypeVariant<'types>
impl<'types> !Sync for UnionTypeVariant<'types>
impl<'types> Unpin for UnionTypeVariant<'types>
impl<'types> UnwindSafe for UnionTypeVariant<'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