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]
impl<Id, T> Alias<Id, T> where
T: From<Type<Id, T>>,
pub fn new(name: Id, typ: T) -> Alias<Id, T>
[src]
pub fn new(name: Id, typ: T) -> Alias<Id, T>
pub fn group(group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>>
[src]
pub fn group(group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>>
ⓘImportant traits for &'a mut Rpub fn as_type(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
pub fn as_type(&self) -> &T
pub fn into_type(self) -> T
[src]
pub fn into_type(self) -> T
impl<Id, T> Alias<Id, T> where
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
[src]
impl<Id, T> Alias<Id, T> where
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
impl<Id> Alias<Id, ArcType<Id>> where
Id: Clone,
[src]
impl<Id> Alias<Id, ArcType<Id>> where
Id: Clone,
Methods from Deref<Target = AliasRef<Id, T>>
pub fn try_get_alias_mut(&mut self) -> Option<&mut AliasData<Id, T>>
[src]
pub fn try_get_alias_mut(&mut self) -> Option<&mut AliasData<Id, T>>
Trait Implementations
impl<Id: Clone, T: Clone> Clone for Alias<Id, T>
[src]
impl<Id: Clone, T: Clone> Clone for Alias<Id, T>
fn clone(&self) -> 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[src]
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: Debug, T: Debug> Debug for Alias<Id, T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Id: Eq, T: Eq> Eq for Alias<Id, T>
[src]
impl<Id: Eq, T: Eq> Eq for Alias<Id, T>
impl<Id: PartialEq, T: PartialEq> PartialEq for Alias<Id, T>
[src]
impl<Id: PartialEq, T: PartialEq> PartialEq for Alias<Id, T>
fn eq(&self, other: &Alias<Id, T>) -> bool
[src]
fn eq(&self, other: &Alias<Id, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Alias<Id, T>) -> bool
[src]
fn ne(&self, other: &Alias<Id, T>) -> bool
This method tests for !=
.
impl<Id: Hash, T: Hash> Hash for Alias<Id, T>
[src]
impl<Id: Hash, T: Hash> Hash for Alias<Id, T>
fn hash<__HIdT: Hasher>(&self, state: &mut __HIdT)
[src]
fn hash<__HIdT: Hasher>(&self, state: &mut __HIdT)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]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]
impl<Id, T> Deref for Alias<Id, T> where
T: Deref<Target = Type<Id, T>>,
type Target = AliasRef<Id, T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<Id, T> DerefMut for Alias<Id, T> where
T: DerefMut<Target = Type<Id, T>>,
[src]
impl<Id, T> DerefMut for Alias<Id, T> where
T: DerefMut<Target = Type<Id, T>>,
impl<Id, T> From<AliasData<Id, T>> for Alias<Id, T> where
T: From<Type<Id, T>>,
[src]
impl<Id, T> From<AliasData<Id, T>> for Alias<Id, T> where
T: From<Type<Id, T>>,
impl<Id, T> AsRef<T> for Alias<Id, T>
[src]
impl<Id, T> AsRef<T> for Alias<Id, T>