[][src]Struct varisat::variables::data::VarData

pub struct VarData {
    pub sampling_mode: SamplingMode,
    pub unit: Option<bool>,
    pub isolated: bool,
    pub assumed: bool,
    pub deleted: bool,
}

Data associated with variables.

This is available for each global variable, even if eliminated within the solver.

Fields

sampling_mode: SamplingMode

The variable's sampling mode.

unit: Option<bool>

Whether the variable is forced by a unit clause.

This is used to remember unit clauses after they are removed from the solver.

isolated: bool

True if there are no clauses containing this variable and other variables.

This is the case if there are no clauses containing this variable or just a unit clause with this variable.

assumed: bool

True if this variable is part of the current assumptions.

deleted: bool

Whether the global variable was deleted.

Methods

impl VarData[src]

pub fn user_default() -> VarData[src]

Default variable data for a new user variable.

Trait Implementations

impl Clone for VarData[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for VarData[src]

Auto Trait Implementations

impl Send for VarData

impl Sync for VarData

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
    Inner: Part,
    Outer: Part<PartType = Field<OuterFieldType>>,
    OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
    Reference: HasPart<Outer> + ?Sized