Struct gluon_base::types::Alias
[−]
[src]
pub struct Alias<Id, T> { /* fields omitted */ }
An alias is wrapper around Type::Alias
, allowing it to be cheaply converted to a type and
dereferenced to AliasRef
Methods
impl<Id, T> Alias<Id, T> where
T: From<Type<Id, T>>,
[src]
T: From<Type<Id, T>>,
fn new(name: Id, args: Vec<Generic<Id>>, typ: T) -> Alias<Id, T>
[src]
fn group(group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>>
[src]
fn as_type(&self) -> &T
[src]
fn into_type(self) -> T
[src]
impl<Id, T> Alias<Id, T> where
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
[src]
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
impl<Id> Alias<Id, ArcType<Id>> where
Id: Clone,
[src]
Id: Clone,
Methods from Deref<Target = AliasData<Id, T>>
fn unresolved_type(&self) -> &T
[src]
Returns the type aliased by self
with out Type::Ident
resolved to their actual
Type::Alias
representation
Trait Implementations
impl<Id: Clone, T: Clone> Clone for Alias<Id, T>
[src]
fn clone(&self) -> Alias<Id, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Id: Debug, T: Debug> Debug for Alias<Id, T>
[src]
impl<Id: Eq, T: Eq> Eq for Alias<Id, T>
[src]
impl<Id: PartialEq, T: PartialEq> PartialEq for Alias<Id, T>
[src]
fn eq(&self, __arg_0: &Alias<Id, T>) -> bool
[src]
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
[src]
This method tests for !=
.
impl<Id: Hash, T: Hash> Hash for Alias<Id, T>
[src]
fn hash<__HIdT: Hasher>(&self, __arg_0: &mut __HIdT)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<Id, T> Deref for Alias<Id, T> where
T: Deref<Target = Type<Id, T>>,
[src]
T: Deref<Target = Type<Id, T>>,
type Target = AliasData<Id, T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<Id, T> From<AliasData<Id, T>> for Alias<Id, T> where
T: From<Type<Id, T>>,
[src]
T: From<Type<Id, T>>,