[][src]Struct gluon_base::types::AliasRef

pub struct AliasRef<Id, T> {
    pub group: Arc<[AliasData<Id, T>]>,
    // some fields omitted
}

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<[AliasData<Id, T>]>

The other aliases defined in this group

Methods

impl<Id, T> AliasRef<Id, T>[src]

pub fn try_get_alias_mut(&mut self) -> Option<&mut AliasData<Id, T>>[src]

impl<Id, T> AliasRef<Id, T> where
    T: TypeExt<Id = Id> + Clone,
    Id: Clone + PartialEq
[src]

pub fn typ(&self, interner: &mut impl TypeContext<Id, T>) -> Cow<T>[src]

Methods from Deref<Target = AliasData<Id, T>>

pub fn unresolved_type(&self) -> &T[src]

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 aliased_type(&self) -> &T[src]

pub fn kind<'k>(&'k self, cache: &'k KindCache) -> Cow<'k, ArcKind>[src]

Trait Implementations

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Id, T> PartialEq<AliasRef<Id, T>> for AliasRef<Id, T> where
    AliasData<Id, T>: PartialEq
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<Id, T> Eq for AliasRef<Id, T> where
    AliasData<Id, T>: Eq
[src]

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

impl<Id, T> Deref for AliasRef<Id, T>[src]

type Target = AliasData<Id, T>

The resulting type after dereferencing.

impl<Id, T> Hash for AliasRef<Id, T> where
    AliasData<Id, T>: Hash
[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: Debug, T: Debug> Debug for AliasRef<Id, T>[src]

Auto Trait Implementations

impl<Id, T> Send for AliasRef<Id, T> where
    Id: Send + Sync,
    T: Send + Sync

impl<Id, T> Sync for AliasRef<Id, T> where
    Id: Send + Sync,
    T: Send + Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]