pub struct TypedVariant {
pub name: String,
pub fields: Vec<QalaType>,
pub span: Span,
}Expand description
one typed variant of an enum: a name and zero or more resolved field types.
Fields§
§name: Stringthe variant name.
fields: Vec<QalaType>the resolved types of the variant’s data fields (possibly empty).
span: Spanthe variant’s source span.
Trait Implementations§
Source§impl Clone for TypedVariant
impl Clone for TypedVariant
Source§fn clone(&self) -> TypedVariant
fn clone(&self) -> TypedVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedVariant
impl Debug for TypedVariant
Source§impl PartialEq for TypedVariant
impl PartialEq for TypedVariant
Source§fn eq(&self, other: &TypedVariant) -> bool
fn eq(&self, other: &TypedVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedVariant
Auto Trait Implementations§
impl Freeze for TypedVariant
impl RefUnwindSafe for TypedVariant
impl Send for TypedVariant
impl Sync for TypedVariant
impl Unpin for TypedVariant
impl UnsafeUnpin for TypedVariant
impl UnwindSafe for TypedVariant
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