Struct chalk_ir::UniverseMap [−][src]
Maps the universes found in the u_canonicalize
result (the
“canonical” universes) to the universes found in the original
value (and vice versa). When used as a folder – i.e., from
outside this module – converts from “canonical” universes to the
original (but see the UMapToCanonical
folder).
Fields
universes: Vec<UniverseIndex>
A reverse map – for each universe Ux that appears in
quantified
, the corresponding universe in the original was
universes[x]
.
Implementations
impl UniverseMap
[src]
pub fn new() -> Self
[src]
Creates a new universe map.
pub fn num_canonical_universes(&self) -> usize
[src]
Number of canonical universes.
Trait Implementations
impl Clone for UniverseMap
[src]
fn clone(&self) -> UniverseMap
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UniverseMap
[src]
Auto Trait Implementations
impl RefUnwindSafe for UniverseMap
impl Send for UniverseMap
impl Sync for UniverseMap
impl Unpin for UniverseMap
impl UnwindSafe for UniverseMap
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>,