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

pub struct AliasRef<Id, T> where
    T: TypePtr<Id = Id>, 
{ 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

Implementations

impl<Id, T> AliasRef<Id, T> where
    T: TypePtr<Id = Id>, 
[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,
    T::Types: Clone + Default + Extend<T>,
    T::Generics: Clone,
    T::Fields: Clone,
    Id: Clone + PartialEq,
    T::SpannedId: 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 is_implicit(&self) -> bool[src]

pub fn self_type(&self, context: &mut impl TypeContext<Id, T> + ?Sized) -> T[src]

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<'ast, Id, T> AstClone<'ast, Id> for AliasRef<Id, T> where
    T: TypePtr<Id = Id>,
    Id: AstClone<'ast, Id>,
    T: AstClone<'ast, Id>,
    T::Generics: AstClone<'ast, Id>,
    Id: Clone
[src]

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

impl<Id, T> Debug for AliasRef<Id, T> where
    Id: Debug,
    T: TypePtr<Id = Id> + Debug,
    AliasData<Id, T>: Debug
[src]

impl<Id, T> Deref for AliasRef<Id, T> where
    T: TypePtr<Id = Id>, 
[src]

type Target = AliasData<Id, T>

The resulting type after dereferencing.

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

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

impl<Id, T> Hash for AliasRef<Id, T> where
    T: TypePtr<Id = Id>,
    AliasData<Id, T>: Hash
[src]

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

Auto Trait Implementations

impl<Id, T> RefUnwindSafe for AliasRef<Id, T> where
    Id: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as TypePtr>::Generics: RefUnwindSafe

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

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

impl<Id, T> Unpin for AliasRef<Id, T>

impl<Id, T> UnwindSafe for AliasRef<Id, T> where
    Id: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as TypePtr>::Generics: RefUnwindSafe

Blanket Implementations

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

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.