Struct clingo::defaults::Non

source ·
pub struct Non;
Expand description

Default implementation for Logger, Propagator, GroundProgramObserver, FunctionHandler and SolveEventHandler

Trait Implementations§

source§

impl Clone for Non

source§

fn clone(&self) -> Non

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Non

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FunctionHandler for Non

source§

fn on_external_function( &mut self, _location: &Location, _name: &str, _arguments: &[Symbol] ) -> Result<Vec<Symbol>, ExternalError>

Callback function to implement external functions. Read more
source§

impl GroundProgramObserver for Non

source§

fn init_program(&mut self, _incremental: bool) -> bool

Called once in the beginning. Read more
source§

fn begin_step(&mut self) -> bool

Marks the beginning of a block of directives passed to the solver. Read more
source§

fn end_step(&mut self) -> bool

Marks the end of a block of directives passed to the solver. Read more
source§

fn rule( &mut self, _choice: bool, _head: &[Atom], _body: &[SolverLiteral] ) -> bool

Observe rules passed to the solver. Read more
source§

fn weight_rule( &mut self, _choice: bool, _head: &[Atom], _lower_bound: i32, _body: &[WeightedLiteral] ) -> bool

Observe weight rules passed to the solver. Read more
source§

fn minimize(&mut self, _priority: i32, _literals: &[WeightedLiteral]) -> bool

Observe minimize constraints (or weak constraints) passed to the solver. Read more
source§

fn project(&mut self, _atoms: &[Atom]) -> bool

Observe projection directives passed to the solver. Read more
source§

fn output_atom(&mut self, _symbol: Symbol, _atom: Atom) -> bool

Observe shown atoms passed to the solver. Read more
source§

fn output_term(&mut self, _symbol: Symbol, _condition: &[SolverLiteral]) -> bool

Observe shown terms passed to the solver. Read more
source§

fn output_csp( &mut self, _symbol: Symbol, _value: i32, _condition: &[SolverLiteral] ) -> bool

Observe shown csp variables passed to the solver. Read more
source§

fn external(&mut self, _atom: Atom, _type_: ExternalType) -> bool

Observe external statements passed to the solver. Read more
source§

fn assume(&mut self, _literals: &[SolverLiteral]) -> bool

Observe assumption directives passed to the solver. Read more
source§

fn heuristic( &mut self, _atom: Atom, _type_: HeuristicType, _bias: i32, _priority: u32, _condition: &[SolverLiteral] ) -> bool

Observe heuristic directives passed to the solver. Read more
source§

fn acyc_edge( &mut self, _node_u: i32, _node_v: i32, _condition: &[SolverLiteral] ) -> bool

Observe edge directives passed to the solver. Read more
source§

fn theory_term_number(&mut self, _term_id: Id, _number: i32) -> bool

Observe numeric theory terms. Read more
source§

fn theory_term_string(&mut self, _term_id: Id, _name: &str) -> bool

Observe string theory terms. Read more
source§

fn theory_term_compound( &mut self, _term_id: Id, _name_id_or_type: i32, _arguments: &[Id] ) -> bool

Observe compound theory terms. Read more
source§

fn theory_element( &mut self, _element_id: Id, _terms: &[Id], _condition: &[SolverLiteral] ) -> bool

Observe theory elements. Read more
source§

fn theory_atom( &mut self, _atom_id_or_zero: Id, _term_id: Id, _elements: &[Id] ) -> bool

Observe theory atoms without guard. Read more
source§

fn theory_atom_with_guard( &mut self, _atom_id_or_zero: Id, _term_id: Id, _elements: &[Id], _operator_id: Id, _right_hand_side_id: Id ) -> bool

Observe theory atoms with guard. Read more
source§

impl Logger for Non

source§

fn log(&mut self, code: Warning, message: &str)

Callback to intercept warning messages. Read more
source§

impl Propagator for Non

source§

fn init(&mut self, _init: &mut PropagateInit) -> bool

This function is called once before each solving step. It is used to map relevant program literals to solver literals, add watches for solver literals, and initialize the data structures used during propagation. Read more
source§

fn propagate( &mut self, _control: &mut PropagateControl, _changes: &[SolverLiteral] ) -> bool

Can be used to propagate solver literals given a partial assignment Assignment. Read more
source§

fn undo(&mut self, _control: &mut PropagateControl, _changes: &[SolverLiteral])

Called whenever a solver undoes assignments to watched solver literals. Read more
source§

fn check(&mut self, _control: &mut PropagateControl) -> bool

This function is similar to PropagateControl::propagate() but is only called on total assignments without a change set. Read more
source§

fn decide( &mut self, _thread_id: Id, _assignment: &Assignment, _fallback: SolverLiteral, _decision: &mut SolverLiteral ) -> bool

This function allows a propagator to implement domain-specific heuristics. Read more
source§

impl SolveEventHandler for Non

source§

fn on_solve_event(&mut self, _event: SolveEvent<'_>, _goon: &mut bool) -> bool

Callback function called during search to notify when the search is finished or a model is ready Read more
source§

impl Copy for Non

Auto Trait Implementations§

§

impl RefUnwindSafe for Non

§

impl Send for Non

§

impl Sync for Non

§

impl Unpin for Non

§

impl UnwindSafe for Non

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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.