Struct gluon_base::types::AliasRef [−][src]
Data for a type alias. Probably you want to use Alias
instead of this directly as Alias allows
for cheap conversion back into a type as well.
Fields
group: Arc<Vec<AliasData<Id, T>>>
The other aliases defined in this group
Methods
impl<Id, T> AliasRef<Id, T>
[src]
impl<Id, T> 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>>
impl<Id, T> AliasRef<Id, T> where
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
[src]
impl<Id, T> AliasRef<Id, T> where
T: From<Type<Id, T>> + Deref<Target = Type<Id, T>> + Clone,
Id: Clone + PartialEq,
Methods from Deref<Target = AliasData<Id, T>>
ⓘImportant traits for &'a mut Rpub fn unresolved_type(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
pub fn unresolved_type(&self) -> &T
Returns the type aliased by self
with out Type::Ident
resolved to their actual
Type::Alias
representation
pub fn params(&self) -> &[Generic<Id>]
[src]
pub fn params(&self) -> &[Generic<Id>]
ⓘImportant traits for &'a mut Rpub fn aliased_type(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
pub fn aliased_type(&self) -> &T
Trait Implementations
impl<Id: Clone, T: Clone> Clone for AliasRef<Id, T>
[src]
impl<Id: Clone, T: Clone> Clone for AliasRef<Id, T>
fn clone(&self) -> AliasRef<Id, T>
[src]
fn clone(&self) -> AliasRef<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 AliasRef<Id, T>
[src]
impl<Id: Debug, T: Debug> Debug for AliasRef<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 AliasRef<Id, T>
[src]
impl<Id: Eq, T: Eq> Eq for AliasRef<Id, T>
impl<Id: PartialEq, T: PartialEq> PartialEq for AliasRef<Id, T>
[src]
impl<Id: PartialEq, T: PartialEq> PartialEq for AliasRef<Id, T>
fn eq(&self, other: &AliasRef<Id, T>) -> bool
[src]
fn eq(&self, other: &AliasRef<Id, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AliasRef<Id, T>) -> bool
[src]
fn ne(&self, other: &AliasRef<Id, T>) -> bool
This method tests for !=
.
impl<Id: Hash, T: Hash> Hash for AliasRef<Id, T>
[src]
impl<Id: Hash, T: Hash> Hash for AliasRef<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 AliasRef<Id, T>
[src]
impl<Id, T> Deref for AliasRef<Id, T>