pub enum EnumFields {
Empty,
Named(Vec<Var>),
Unnamed(Vec<RustType>),
}Expand description
Enum fields.
Variants§
Trait Implementations§
Source§impl Default for EnumFields
impl Default for EnumFields
Source§fn default() -> EnumFields
fn default() -> EnumFields
Returns the “default value” for a type. Read more
Source§impl Expression for EnumFields
impl Expression for EnumFields
Source§fn write(&self, b: &mut CodeBuffer)
fn write(&self, b: &mut CodeBuffer)
Writes the code to the buffer
b.Auto Trait Implementations§
impl Freeze for EnumFields
impl RefUnwindSafe for EnumFields
impl Send for EnumFields
impl Sync for EnumFields
impl Unpin for EnumFields
impl UnwindSafe for EnumFields
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