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