[−][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
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]
T: TypeExt<Id = Id> + Clone,
Id: 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 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(&self) -> 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]
AliasData<Id, T>: PartialEq,
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<Id, T> Eq for AliasRef<Id, T> where
AliasData<Id, T>: Eq,
[src]
AliasData<Id, T>: Eq,
impl<Id, T> From<AliasRef<Id, T>> for Alias<Id, T> where
T: From<Type<Id, T>>,
[src]
T: From<Type<Id, T>>,
impl<Id, T> Deref for AliasRef<Id, T>
[src]
type Target = AliasData<Id, T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<Id, T> Hash for AliasRef<Id, T> where
AliasData<Id, T>: Hash,
[src]
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,
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,
Id: Send + Sync,
T: Send + Sync,
impl<Id, T> Sync for AliasRef<Id, T> where
Id: Send + Sync,
T: Send + Sync,
Id: Send + Sync,
T: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,