Struct macrohelper::bodykind::enumerator::Enumerator
[−]
[src]
pub struct Enumerator(pub Vec<Variant>);
The collect of all types an Enum can be.
Methods
impl Enumerator
[src]
fn from_body(x: &Body) -> Result<Enumerator, String>
Constructs an enumerator from a Body
fn len(&self) -> usize
Get number of args
fn is_discriminant(&self) -> bool
Are all fields just flat values
fn is_unit(&self) -> bool
Are all fields zero sized
Trait Implementations
impl Clone for Enumerator
[src]
fn clone(&self) -> Enumerator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more