pub enum TypeDef {
Struct(StructDef),
Enum(EnumDef),
Alias(AliasDef),
}Expand description
Underlying definition of a named type: either a struct or an enum.
This mirrors the two composite categories in the IDL:
Struct- record / tuple / unit structs;Enum- tagged unions with variants that may carry payloads.
Variants§
Trait Implementations§
impl StructuralPartialEq for TypeDef
Auto Trait Implementations§
impl Freeze for TypeDef
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnsafeUnpin for TypeDef
impl UnwindSafe for TypeDef
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