[−][src]Struct gluon_base::types::AliasData
Fields
name: Id
is_implicit: bool
Implementations
impl<Id, T> AliasData<Id, T> where
T: TypePtr<Id = Id>,
[src]
T: TypePtr<Id = Id>,
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]
T: TypePtr<Id = Id>,
Id: Clone,
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]
T: TypePtr<Id = Id>,
impl<Id, T> AliasData<Id, T> where
T: TypePtr<Id = Id>,
[src]
T: TypePtr<Id = Id>,
pub fn params(&self) -> &[Generic<Id>]
[src]
pub fn params_mut(&mut self) -> &mut [Generic<Id>] where
T::Generics: DerefMut<Target = [Generic<Id>]>,
[src]
T::Generics: DerefMut<Target = [Generic<Id>]>,
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]
Id: AstClone<'ast, Id>,
T: AstClone<'ast, Id>,
T::Generics: AstClone<'ast, Id>,
Id: Clone,
impl<Id: Clone, T: Clone + TypePtr<Id = Id>> Clone for AliasData<Id, T> where
T::Generics: Clone,
[src]
T::Generics: Clone,
impl<Id: Debug, T: Debug + TypePtr<Id = Id>> Debug for AliasData<Id, T> where
T::Generics: Debug,
[src]
T::Generics: Debug,
impl<Id: Eq, T: Eq + TypePtr<Id = Id>> Eq for AliasData<Id, T> where
T::Generics: Eq,
[src]
T::Generics: Eq,
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]
T: TypeExt<Id = Id> + From<Type<Id, T>>,
T::Types: Clone + Default + Extend<T>,
impl<Id: Hash, T: Hash + TypePtr<Id = Id>> Hash for AliasData<Id, T> where
T::Generics: Hash,
[src]
T::Generics: Hash,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Id: PartialEq, T: PartialEq + TypePtr<Id = Id>> PartialEq<AliasData<Id, T>> for AliasData<Id, T> where
T::Generics: PartialEq,
[src]
T::Generics: PartialEq,
fn eq(&self, other: &AliasData<Id, T>) -> bool
[src]
fn ne(&self, other: &AliasData<Id, T>) -> bool
[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,
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,
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,
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,
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,
Id: UnwindSafe,
T: UnwindSafe,
<T as TypePtr>::Generics: UnwindSafe,
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>,