Struct chalk_ir::UniverseMap
source · [−]pub struct UniverseMap {
pub universes: Vec<UniverseIndex>,
}
Expand description
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
sourceimpl UniverseMap
impl UniverseMap
sourcepub fn num_canonical_universes(&self) -> usize
pub fn num_canonical_universes(&self) -> usize
Number of canonical universes.
Trait Implementations
sourceimpl Clone for UniverseMap
impl Clone for UniverseMap
sourcefn clone(&self) -> UniverseMap
fn clone(&self) -> UniverseMap
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for T
impl<T> Cast for T
sourcefn cast<U>(self, interner: U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more