pub struct Subst<T> { /* private fields */ }
Expand description
Map from variables (usize
) to T
that can be efficiently restored to earlier states.
Implementations§
source§impl<T> Subst<T>
impl<T> Subst<T>
sourcepub fn get_dom_len(&self) -> usize
pub fn get_dom_len(&self) -> usize
Return the number of assigned variables.
sourcepub fn get_dom_max(&self) -> usize
pub fn get_dom_max(&self) -> usize
Return the maximally assignable index.
sourcepub fn set_dom_max(&mut self, dom_max: usize)
pub fn set_dom_max(&mut self, dom_max: usize)
Permit the assignment of variables at least up to (excluding) the given index.
sourcepub fn set_dom_len(&mut self, new_len: usize)
pub fn set_dom_len(&mut self, new_len: usize)
Omit the most recent variable bindings to keep only the given number of bindings.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Subst<T>where T: RefUnwindSafe,
impl<T> Send for Subst<T>where T: Send,
impl<T> Sync for Subst<T>where T: Sync,
impl<T> Unpin for Subst<T>where T: Unpin,
impl<T> UnwindSafe for Subst<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more