Struct rustsat::instances::BasicVarManager
source · pub struct BasicVarManager { /* private fields */ }Expand description
Simple counter variable manager
Implementations§
source§impl BasicVarManager
impl BasicVarManager
sourcepub fn from_next_free(next_var: Var) -> BasicVarManager
pub fn from_next_free(next_var: Var) -> BasicVarManager
Creates a new variable manager from a next free variable
Trait Implementations§
source§impl Clone for BasicVarManager
impl Clone for BasicVarManager
source§fn clone(&self) -> BasicVarManager
fn clone(&self) -> BasicVarManager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BasicVarManager
impl Debug for BasicVarManager
source§impl Default for BasicVarManager
impl Default for BasicVarManager
source§impl ManageVars for BasicVarManager
impl ManageVars for BasicVarManager
source§fn increase_next_free(&mut self, v: Var) -> bool
fn increase_next_free(&mut self, v: Var) -> bool
Increases the next free variable index if the provided variable has a
higher index than the next variable in the manager.
Returns true if the next free index has been increased and false otherwise.
source§fn combine(&mut self, other: Self)
fn combine(&mut self, other: Self)
Combines two variable managers.
In case an object is in both object maps, the one of
other has precedence.source§fn n_used(&self) -> u32
fn n_used(&self) -> u32
Gets the number of used variables. Typically this is just the index of
the next free variable.
source§fn forget_from(&mut self, min_var: Var)
fn forget_from(&mut self, min_var: Var)
Forget variables
>= min_varsource§impl PartialEq for BasicVarManager
impl PartialEq for BasicVarManager
source§fn eq(&self, other: &BasicVarManager) -> bool
fn eq(&self, other: &BasicVarManager) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BasicVarManager
impl StructuralEq for BasicVarManager
impl StructuralPartialEq for BasicVarManager
Auto Trait Implementations§
impl RefUnwindSafe for BasicVarManager
impl Send for BasicVarManager
impl Sync for BasicVarManager
impl Unpin for BasicVarManager
impl UnwindSafe for BasicVarManager
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