[−][src]Struct gluon_base::types::AliasRef
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]
T: TypePtr<Id = Id>,
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]
T: TypeExt<Id = Id> + Clone,
T::Types: Clone + Default + Extend<T>,
T::Generics: Clone,
T::Fields: Clone,
Id: Clone + PartialEq,
T::SpannedId: Clone + PartialEq,
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]
T: TypePtr<Id = Id>,
Id: AstClone<'ast, Id>,
T: AstClone<'ast, Id>,
T::Generics: AstClone<'ast, Id>,
Id: Clone,
impl<Id: Clone, T: Clone> Clone for AliasRef<Id, T> where
T: TypePtr<Id = Id>,
[src]
T: TypePtr<Id = Id>,
impl<Id, T> Debug for AliasRef<Id, T> where
Id: Debug,
T: TypePtr<Id = Id> + Debug,
AliasData<Id, T>: Debug,
[src]
Id: Debug,
T: TypePtr<Id = Id> + Debug,
AliasData<Id, T>: Debug,
impl<Id, T> Deref for AliasRef<Id, T> where
T: TypePtr<Id = Id>,
[src]
T: TypePtr<Id = Id>,
type Target = AliasData<Id, T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<Id, T> Eq for AliasRef<Id, T> where
T: TypePtr<Id = Id>,
AliasData<Id, T>: Eq,
[src]
T: TypePtr<Id = Id>,
AliasData<Id, T>: Eq,
impl<Id, T> From<AliasRef<Id, T>> for Alias<Id, T> where
T: TypePtr<Id = Id> + From<Type<Id, T>>,
[src]
T: TypePtr<Id = Id> + From<Type<Id, T>>,
impl<Id, T> Hash for AliasRef<Id, T> where
T: TypePtr<Id = Id>,
AliasData<Id, T>: Hash,
[src]
T: TypePtr<Id = Id>,
AliasData<Id, T>: Hash,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Id, T> PartialEq<AliasRef<Id, T>> for AliasRef<Id, T> where
T: TypePtr<Id = Id>,
AliasData<Id, T>: PartialEq,
[src]
T: TypePtr<Id = Id>,
AliasData<Id, T>: PartialEq,
Auto Trait Implementations
impl<Id, T> RefUnwindSafe for AliasRef<Id, T> where
Id: RefUnwindSafe,
T: RefUnwindSafe,
<T as TypePtr>::Generics: RefUnwindSafe,
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,
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,
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,
Id: RefUnwindSafe,
T: RefUnwindSafe,
<T as TypePtr>::Generics: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,