Struct bitsy_lang::AltTypeDef
source · pub struct AltTypeDef {
pub name: String,
pub alts: Vec<(String, Vec<Type>)>,
pub span: Span,
}
Expand description
A user-defined alt
type.
Fields§
§name: String
§alts: Vec<(String, Vec<Type>)>
§span: Span
Implementations§
Trait Implementations§
source§impl Clone for AltTypeDef
impl Clone for AltTypeDef
source§fn clone(&self) -> AltTypeDef
fn clone(&self) -> AltTypeDef
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 AltTypeDef
impl Send for AltTypeDef
impl Sync for AltTypeDef
impl Unpin for AltTypeDef
impl UnwindSafe for AltTypeDef
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