pub struct UnionMember {
pub ident: Ident,
pub ty: Type,
}Expand description
One member: the variant that names it and the type it is.
Fields§
§ident: IdentThe variant as Rust spells it, r# and all.
ty: TypeThe single unnamed payload the variant carries — the member type itself.
Implementations§
Trait Implementations§
Source§impl Clone for UnionMember
impl Clone for UnionMember
Auto Trait Implementations§
impl !Send for UnionMember
impl !Sync for UnionMember
impl Freeze for UnionMember
impl RefUnwindSafe for UnionMember
impl Unpin for UnionMember
impl UnsafeUnpin for UnionMember
impl UnwindSafe for UnionMember
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