Enum mml::core::item::state::abstraction::Abstract
[−]
[src]
pub enum Abstract<'a> { Trait(Trait<'a>), Struct(Struct<'a>), Enum(Enum<'a>), None, }
The structure Abstract
is a enumerate for abstract element types or none.
Variants
Trait(Trait<'a>)
Struct(Struct<'a>)
Enum(Enum<'a>)
None
Methods
impl<'a> Abstract<'a>
[src]
fn as_name(&self) -> Option<&InternedString>
The method as_name
returns the name of the abstract element
or else declare a panic.
Trait Implementations
impl<'a> Debug for Abstract<'a>
[src]
impl<'a> Eq for Abstract<'a>
[src]
impl<'a> PartialEq for Abstract<'a>
[src]
fn eq(&self, __arg_0: &Abstract<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Abstract<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for Abstract<'a>
[src]
fn clone(&self) -> Abstract<'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> IntoIterator for &'a Abstract<'a>
[src]
type Item = &'a String
The type of the elements being iterated over.
type IntoIter = IntoIter<&'a String>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a> Default for Abstract<'a>
[src]
impl<'a> From<(&'a Item, &'a Vec<TyParam>, &'a Vec<TraitItem>)> for Abstract<'a>
[src]
fn from(
arguments: (&'a Item, &'a Vec<TyParam>, &'a Vec<TraitItem>)
) -> Abstract<'a>
arguments: (&'a Item, &'a Vec<TyParam>, &'a Vec<TraitItem>)
) -> Abstract<'a>
Performs the conversion.
impl<'a> From<(&'a Item, &'a Vec<StructField>)> for Abstract<'a>
[src]
impl<'a> From<(&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)> for Abstract<'a>
[src]
fn from(
arguments: (&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)
) -> Abstract<'a>
arguments: (&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)
) -> Abstract<'a>
Performs the conversion.