pub struct TypeVariant {
pub name: Identifier,
pub fields: Box<[SpannedItem<TypeField>]>,
}
Fields§
§name: Identifier
§fields: Box<[SpannedItem<TypeField>]>
Trait Implementations§
Source§impl Clone for TypeVariant
impl Clone for TypeVariant
Source§fn clone(&self) -> TypeVariant
fn clone(&self) -> TypeVariant
Returns a duplicate 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 moreSource§impl PrettyPrint for TypeVariant
impl PrettyPrint for TypeVariant
fn pretty_print(&self, interner: &SymbolInterner, indentation: usize) -> String
Auto Trait Implementations§
impl Freeze for TypeVariant
impl RefUnwindSafe for TypeVariant
impl Send for TypeVariant
impl Sync for TypeVariant
impl Unpin for TypeVariant
impl UnwindSafe for TypeVariant
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