Struct bitsy_lang::EnumTypeDef
source · pub struct EnumTypeDef {
pub name: String,
pub values: Vec<(String, WordLit)>,
pub span: Span,
}
Expand description
A user-defined enum
type.
Fields§
§name: String
§values: Vec<(String, WordLit)>
§span: Span
Implementations§
Trait Implementations§
source§impl Clone for EnumTypeDef
impl Clone for EnumTypeDef
source§fn clone(&self) -> EnumTypeDef
fn clone(&self) -> EnumTypeDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for EnumTypeDef
impl Send for EnumTypeDef
impl Sync for EnumTypeDef
impl Unpin for EnumTypeDef
impl UnwindSafe for EnumTypeDef
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