Struct gluon_base::types::Alias [] [src]

pub struct Alias<Id, T> {
    // some fields omitted
}

Methods

impl<Id, T> Alias<Id, T> where T: From<Type<Id, T>>
[src]

fn new(name: Id, args: Vec<Generic<Id>>, typ: T) -> Alias<Id, T>

fn into_type(self) -> T

impl<Id> Alias<Id, ASTType<Id>> where Id: Clone
[src]

fn make_mut(alias: &mut Alias<Id, ASTType<Id>>) -> &mut AliasData<Id, ASTType<Id>>

Trait Implementations

impl<Id: Hash, T: Hash> Hash for Alias<Id, T>
[src]

fn hash<__HIdT: Hasher>(&self, __arg_0: &mut __HIdT)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl<Id: PartialEq, T: PartialEq> PartialEq for Alias<Id, T>
[src]

fn eq(&self, __arg_0: &Alias<Id, T>) -> bool

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

fn ne(&self, __arg_0: &Alias<Id, T>) -> bool

This method tests for !=.

impl<Id: Eq, T: Eq> Eq for Alias<Id, T>
[src]

impl<Id: Debug, T: Debug> Debug for Alias<Id, T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<Id: Clone, T: Clone> Clone for Alias<Id, T>
[src]

fn clone(&self) -> Alias<Id, T>

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<Id, T> Deref for Alias<Id, T> where T: Deref<Target=Type<Id, T>>
[src]

type Target = AliasData<Id, T>

The resulting type after dereferencing

fn deref(&self) -> &AliasData<Id, T>

The method called to dereference a value

impl<Id, T> From<AliasData<Id, T>> for Alias<Id, T> where T: From<Type<Id, T>>
[src]

fn from(data: AliasData<Id, T>) -> Alias<Id, T>

Performs the conversion.

impl<Id, T> AsRef<T> for Alias<Id, T>
[src]

fn as_ref(&self) -> &T

Performs the conversion.