Struct satoxid::constraints::LessCardinality[][src]

pub struct LessCardinality<I1, I2> { /* fields omitted */ }
Expand description

Constraint which encodes that fewer literals are true in smaller than in larger.

Trait Implementations

impl<I1: Clone, I2: Clone> Clone for LessCardinality<I1, I2>[src]

fn clone(&self) -> LessCardinality<I1, I2>[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<I1, I2, V> Constraint<V> for LessCardinality<I1, I2> where
    V: SatVar,
    I1: Iterator + Clone,
    I1::Item: Into<VarType<V>> + Debug,
    I2: Iterator + Clone,
    I2::Item: Into<VarType<V>> + Debug
[src]

fn encode<S: Backend>(self, solver: &mut S, varmap: &mut VarMap<V>)[src]

Encode Self as an constraint using solver.

impl<L1, L2, I1, I2> Debug for LessCardinality<I1, I2> where
    L1: Debug,
    L2: Debug,
    I1: Iterator<Item = L1> + Clone,
    I2: Iterator<Item = L2> + Clone
[src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<I1, I2> RefUnwindSafe for LessCardinality<I1, I2> where
    I1: RefUnwindSafe,
    I2: RefUnwindSafe

impl<I1, I2> Send for LessCardinality<I1, I2> where
    I1: Send,
    I2: Send

impl<I1, I2> Sync for LessCardinality<I1, I2> where
    I1: Sync,
    I2: Sync

impl<I1, I2> Unpin for LessCardinality<I1, I2> where
    I1: Unpin,
    I2: Unpin

impl<I1, I2> UnwindSafe for LessCardinality<I1, I2> where
    I1: UnwindSafe,
    I2: UnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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.

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

Performs the conversion.