[][src]Struct gluon_base::types::AliasData

pub struct AliasData<Id, T: TypePtr<Id = Id>> {
    pub name: Id,
    pub is_implicit: bool,
    // some fields omitted
}

Fields

name: Idis_implicit: bool

Implementations

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

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

pub fn is_implicit(&self) -> bool[src]

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

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

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

pub fn new(name: Id, args: T::Generics, typ: T) -> AliasData<Id, T>[src]

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

pub fn params(&self) -> &[Generic<Id>][src]

pub fn params_mut(&mut self) -> &mut [Generic<Id>] where
    T::Generics: DerefMut<Target = [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: TypePtr<Id = Id>> AstClone<'ast, Id> for AliasData<Id, T> where
    Id: AstClone<'ast, Id>,
    T: AstClone<'ast, Id>,
    T::Generics: AstClone<'ast, Id>,
    Id: Clone
[src]

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

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

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

impl<Id, T> From<AliasData<Id, T>> for Alias<Id, T> where
    T: TypeExt<Id = Id> + From<Type<Id, T>>,
    T::Types: Clone + Default + Extend<T>, 
[src]

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

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

impl<Id, T: TypePtr<Id = Id>> StructuralEq for AliasData<Id, T>[src]

impl<Id, T: TypePtr<Id = Id>> StructuralPartialEq for AliasData<Id, T>[src]

Auto Trait Implementations

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

impl<Id, T> Send for AliasData<Id, T> where
    Id: Send,
    T: Send,
    <T as TypePtr>::Generics: Send

impl<Id, T> Sync for AliasData<Id, T> where
    Id: Sync,
    T: Sync,
    <T as TypePtr>::Generics: Sync

impl<Id, T> Unpin for AliasData<Id, T> where
    Id: Unpin,
    T: Unpin,
    <T as TypePtr>::Generics: Unpin

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

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.