Struct mml::core::item::state::abstraction::enumerate::Enum
[−]
[src]
pub struct Enum<'a> {
pub vis: &'a Visibility,
pub name: InternedString,
pub params: Vec<InternedString>,
pub variants: Vec<(InternedString, Vec<String>)>,
}The structure Enum is a enumerate abstract element.
Fields
vis: &'a Visibility
name: InternedString
params: Vec<InternedString>
variants: Vec<(InternedString, Vec<String>)>
Trait Implementations
impl<'a> Debug for Enum<'a>[src]
impl<'a> Eq for Enum<'a>[src]
impl<'a> PartialEq for Enum<'a>[src]
fn eq(&self, __arg_0: &Enum<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Enum<'a>) -> bool
This method tests for !=.
impl<'a> Clone for Enum<'a>[src]
fn clone(&self) -> Enum<'a>
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
impl<'a> From<(&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)> for Enum<'a>[src]
fn from(
(item, ty_params, variants): (&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)
) -> Enum<'a>
(item, ty_params, variants): (&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)
) -> Enum<'a>
Performs the conversion.