pub struct AdtVariant {
pub name: Symbol,
pub args: Vec<Type>,
}Expand description
A single ADT variant with zero or more constructor arguments.
Fields§
§name: Symbol§args: Vec<Type>Trait Implementations§
Source§impl Clone for AdtVariant
impl Clone for AdtVariant
Source§fn clone(&self) -> AdtVariant
fn clone(&self) -> AdtVariant
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 AdtVariant
impl Debug for AdtVariant
Source§impl Hash for AdtVariant
impl Hash for AdtVariant
Source§impl Ord for AdtVariant
impl Ord for AdtVariant
Source§fn cmp(&self, other: &AdtVariant) -> Ordering
fn cmp(&self, other: &AdtVariant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AdtVariant
impl PartialEq for AdtVariant
Source§fn eq(&self, other: &AdtVariant) -> bool
fn eq(&self, other: &AdtVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AdtVariant
impl PartialOrd for AdtVariant
impl Eq for AdtVariant
impl StructuralPartialEq for AdtVariant
Auto Trait Implementations§
impl Freeze for AdtVariant
impl RefUnwindSafe for AdtVariant
impl Send for AdtVariant
impl Sync for AdtVariant
impl Unpin for AdtVariant
impl UnsafeUnpin for AdtVariant
impl UnwindSafe for AdtVariant
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