#[repr(C)]pub struct Enum {
pub name: RString,
pub docs: DocBlock,
pub cases: Vec<EnumCase>,
pub backing_type: Option<RString>,
}Available on crate feature
enum only.Expand description
Represents an exported enum.
Fields§
§name: RStringName of the enum.
docs: DocBlockDocumentation comments for the enum.
cases: Vec<EnumCase>Cases of the enum.
backing_type: Option<RString>Backing type of the enum.
Trait Implementations§
Source§impl From<EnumBuilder> for Enum
impl From<EnumBuilder> for Enum
Source§fn from(val: EnumBuilder) -> Self
fn from(val: EnumBuilder) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl !Send for Enum
impl !Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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