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

Methods

impl<'a> Abstract<'a>
[src]

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]

Formats the value using the given formatter.

impl<'a> Eq for Abstract<'a>
[src]

impl<'a> PartialEq for Abstract<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Clone for Abstract<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> IntoIterator for &'a Abstract<'a>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a> Default for Abstract<'a>
[src]

Returns the "default value" for a type. Read more

impl<'a> From<(&'a Item, &'a Vec<TyParam>, &'a Vec<TraitItem>)> for Abstract<'a>
[src]

Performs the conversion.

impl<'a> From<(&'a Item, &'a Vec<StructField>)> for Abstract<'a>
[src]

Performs the conversion.

impl<'a> From<(&'a Item, &'a Vec<TyParam>, &'a Vec<Variant>)> for Abstract<'a>
[src]

Performs the conversion.

impl<'a> Display for Abstract<'a>
[src]

Formats the value using the given formatter. Read more