[−]Struct rustc_data_structures::unify::UnificationTable
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: SIndicates 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> 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<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Erased for T[src]
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>,