Struct chalk_ir::UCanonical [−][src]
A “universe canonical” value. This is a wrapper around a
Canonical
, indicating that the universes within have been
“renumbered” to start from 0 and collapse unimportant
distinctions.
To produce one of these values, use the u_canonicalize
method.
Fields
canonical: Canonical<T>
The wrapped Canonical
.
universes: usize
The number of universes that have been collapsed.
Implementations
impl<T: HasInterner> UCanonical<T>
[src]
pub fn is_trivial_substitution(
&self,
interner: &T::Interner,
canonical_subst: &Canonical<AnswerSubst<T::Interner>>
) -> bool
[src]
&self,
interner: &T::Interner,
canonical_subst: &Canonical<AnswerSubst<T::Interner>>
) -> bool
Checks whether the universe canonical value is a trivial substitution (e.g. an identity substitution).
pub fn trivial_substitution(
&self,
interner: &T::Interner
) -> Substitution<T::Interner>
[src]
&self,
interner: &T::Interner
) -> Substitution<T::Interner>
Creates an identity substitution.
Trait Implementations
impl<T: Clone + HasInterner> Clone for UCanonical<T>
[src]
fn clone(&self) -> UCanonical<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + HasInterner> Debug for UCanonical<T>
[src]
impl<T: Eq + HasInterner> Eq for UCanonical<T>
[src]
impl<T: Hash + HasInterner> Hash for UCanonical<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq + HasInterner> PartialEq<UCanonical<T>> for UCanonical<T>
[src]
fn eq(&self, other: &UCanonical<T>) -> bool
[src]
fn ne(&self, other: &UCanonical<T>) -> bool
[src]
impl<T: HasInterner> StructuralEq for UCanonical<T>
[src]
impl<T: HasInterner> StructuralPartialEq for UCanonical<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for UCanonical<T> where
T: RefUnwindSafe,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: RefUnwindSafe,
T: RefUnwindSafe,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: RefUnwindSafe,
impl<T> Send for UCanonical<T> where
T: Send,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Send,
T: Send,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Send,
impl<T> Sync for UCanonical<T> where
T: Sync,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Sync,
T: Sync,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Sync,
impl<T> Unpin for UCanonical<T> where
T: Unpin,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Unpin,
T: Unpin,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: Unpin,
impl<T> UnwindSafe for UCanonical<T> where
T: UnwindSafe,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: UnwindSafe,
T: UnwindSafe,
<<T as HasInterner>::Interner as Interner>::InternedCanonicalVarKinds: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,