Struct cop::lean::search::Search

source ·
pub struct Search<'t, P, C> {
    pub sub: Sub<'t, C>,
    /* private fields */
}
Expand description

State of the proof search.

Fields§

§sub: Sub<'t, C>

substitution

Implementations§

source§

impl<'t, P, C> Search<'t, P, C>

source

pub fn new( cl: &'t Clause<&Lit<P, C, usize>>, db: &'t Db<'_, P, C, usize>, opt: Opt ) -> Self

Initialise a new proof search.

source§

impl<'t, P, C> Search<'t, P, C>where P: Clone + Display + Eq + Hash + Neg<Output = P>, C: Clone + Display + Eq,

source

pub fn prove(&mut self) -> Option<&Vec<Action<'t, P, C>>>

Perform proof search, returning Some(proof) if you are lucky. :)

This function should eventually terminate.

source

pub fn inferences(&self) -> usize

Return the number of inferences performed so far.

Auto Trait Implementations§

§

impl<'t, P, C> RefUnwindSafe for Search<'t, P, C>where C: RefUnwindSafe, P: RefUnwindSafe,

§

impl<'t, P, C> Send for Search<'t, P, C>where C: Sync, P: Sync,

§

impl<'t, P, C> Sync for Search<'t, P, C>where C: Sync, P: Sync,

§

impl<'t, P, C> Unpin for Search<'t, P, C>

§

impl<'t, P, C> UnwindSafe for Search<'t, P, C>where C: RefUnwindSafe, P: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, R> Rewind<PutRewind<T, R>> for Twhere T: Rewind<R>,

source§

fn rewind(&mut self, state: PutRewind<T, R>)

Rewind to some state.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.