[][src]Struct rate_common::parser::HashTable

pub struct HashTable(_);

A fixed-size hash table that maps clauses (sets of literals) to clause identifiers.

This should work exactly like the one used in drat-trim. Given that we expect the number of clauses in the hash table not to exceed a couple million this should be faster and leaner than DynamicHashTable.

Methods

impl HashTable[src]

pub fn new() -> HashTable[src]

Allocate the hash table.

pub fn add_clause(&mut self, clause_db: &ClauseDatabase, clause: Clause)[src]

Add a new clause to the hashtable.

pub fn find_equal_clause(
    &mut self,
    clause_db: &ClauseDatabase,
    needle: Clause,
    delete: bool
) -> Option<Clause>
[src]

Find a clause that is equivalent to given clause.

If delete is true, delete the found clause.

pub fn clause_is_active(
    &self,
    clause_db: &ClauseDatabase,
    needle: Clause
) -> bool
[src]

Return true if this exact clause is active.

pub fn delete_clause(
    &mut self,
    clause_db: &ClauseDatabase,
    needle: Clause
) -> bool
[src]

Delete this exact clause, return true if that succeeded.

Trait Implementations

impl HeapSpace for HashTable[src]

impl<'a> IntoIterator for &'a HashTable[src]

type Item = &'a Clause

The type of the elements being iterated over.

type IntoIter = HashTableIterator<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> HeapSpace for T where
    T: Copy
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.