Struct batsat::clause::OccListsData
source · pub struct OccListsData<K: AsIndex, V> { /* private fields */ }
Expand description
List of occurrences of objects of type K
(e.g. literals) in values
of type V
(e.g. clauses)
Implementations
sourceimpl<K: AsIndex, V> OccListsData<K, V>
impl<K: AsIndex, V> OccListsData<K, V>
pub fn new() -> Self
sourcepub fn promote<P: DeletePred<V>>(&mut self, pred: P) -> OccLists<'_, K, V, P>
pub fn promote<P: DeletePred<V>>(&mut self, pred: P) -> OccLists<'_, K, V, P>
Obtain a fully usable occurrence list using the given predicate
sourcepub fn lookup_mut_pred<P: DeletePred<V>>(
&mut self,
idx: K,
pred: &P
) -> &mut OccVec<V>
pub fn lookup_mut_pred<P: DeletePred<V>>(
&mut self,
idx: K,
pred: &P
) -> &mut OccVec<V>
oclist.lookup_mut_pred(idx, p)
returns an up-to-date list of occurrences
for idx
. It will clean up the occurrence list with p
if it’s dirty.
sourcepub fn clean_all_pred<P: DeletePred<V>>(&mut self, pred: &P)
pub fn clean_all_pred<P: DeletePred<V>>(&mut self, pred: &P)
Cleanup entries marked as dirty
(remove elements for which the predicate
specifies they’re deleted)
sourcepub fn clean_pred<P: DeletePred<V>>(&mut self, idx: K, pred: &P)
pub fn clean_pred<P: DeletePred<V>>(&mut self, idx: K, pred: &P)
Cleanup entry at idx
Trait Implementations
sourceimpl<K: Clone + AsIndex, V: Clone> Clone for OccListsData<K, V>
impl<K: Clone + AsIndex, V: Clone> Clone for OccListsData<K, V>
sourcefn clone(&self) -> OccListsData<K, V>
fn clone(&self) -> OccListsData<K, V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<K: AsIndex, V> Index<K> for OccListsData<K, V>
impl<K: AsIndex, V> Index<K> for OccListsData<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for OccListsData<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for OccListsData<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for OccListsData<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for OccListsData<K, V>where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for OccListsData<K, V>where
K: UnwindSafe,
V: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more