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 · 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 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