Struct rustc_data_structures::unify::UnificationTable [−]
pub struct UnificationTable<S> where
S: UnificationStoreBase, {
values: S,
}Expand description
Table of unification keys and their values. You must define a key type K
that implements the UnifyKey trait. Unification tables can be used in two-modes:
- in-place (
UnificationTable<InPlace<K>>orInPlaceUnificationTable<K>):- This is the standard mutable mode, where the array is modified in place.
- To do backtracking, you can employ the
snapshotandrollback_tomethods.
- persistent (
UnificationTable<Persistent<K>>orPersistentUnificationTable<K>):- In this mode, we use a persistent vector to store the data, so that cloning the table is an O(1) operation.
- This implies that ordinary operations are quite a bit slower though.
- Requires the
persistentfeature be selected in your Cargo.toml file.
Fields
values: SExpand description
Indicates the current value of each key.
Auto Trait Implementations
impl<S> RefUnwindSafe for UnificationTable<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for UnificationTable<S> where
S: Send,
S: Send,
impl<S> Sync for UnificationTable<S> where
S: Sync,
S: Sync,
impl<S> Unpin for UnificationTable<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for UnificationTable<S> where
S: UnwindSafe,
S: UnwindSafe,
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> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe 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
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,