#[repr(C)]pub enum UserType<'shape> {
Struct(StructType<'shape>),
Enum(EnumType<'shape>),
Union(UnionType<'shape>),
Opaque,
}Expand description
User-defined types (structs, enums, unions)
Variants§
Struct(StructType<'shape>)
Describes a struct
Enum(EnumType<'shape>)
Describes an enum
Union(UnionType<'shape>)
Describes a union
Opaque
Special variant for representing external types with unknown internal representation.
Implementations§
Trait Implementations§
impl<'shape> Copy for UserType<'shape>
impl<'shape> Eq for UserType<'shape>
impl<'shape> StructuralPartialEq for UserType<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for UserType<'shape>
impl<'shape> RefUnwindSafe for UserType<'shape>
impl<'shape> Send for UserType<'shape>
impl<'shape> Sync for UserType<'shape>
impl<'shape> Unpin for UserType<'shape>
impl<'shape> UnwindSafe for UserType<'shape>
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