pub struct BitwiseEncoder {}Expand description
An encoder for CardinalityOne constraints that uses a logarithm
encoded selector variable to ensure the selection of at most one of
the given literals
Trait Implementations§
Source§impl Clone for BitwiseEncoder
impl Clone for BitwiseEncoder
Source§fn clone(&self) -> BitwiseEncoder
fn clone(&self) -> BitwiseEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BitwiseEncoder
impl Debug for BitwiseEncoder
Source§impl Default for BitwiseEncoder
impl Default for BitwiseEncoder
Source§fn default() -> BitwiseEncoder
fn default() -> BitwiseEncoder
Returns the “default value” for a type. Read more
Source§impl<Db: ClauseDatabase + ?Sized> Encoder<Db, CardinalityOne> for BitwiseEncoder
impl<Db: ClauseDatabase + ?Sized> Encoder<Db, CardinalityOne> for BitwiseEncoder
Source§fn encode(
&self,
db: &mut Db,
card1: &CardinalityOne,
) -> Result<(), Unsatisfiable>
fn encode( &self, db: &mut Db, card1: &CardinalityOne, ) -> Result<(), Unsatisfiable>
Encode the constraint into the given clausal database.
Source§impl Hash for BitwiseEncoder
impl Hash for BitwiseEncoder
Source§impl PartialEq for BitwiseEncoder
impl PartialEq for BitwiseEncoder
impl Eq for BitwiseEncoder
impl StructuralPartialEq for BitwiseEncoder
Auto Trait Implementations§
impl Freeze for BitwiseEncoder
impl RefUnwindSafe for BitwiseEncoder
impl Send for BitwiseEncoder
impl Sync for BitwiseEncoder
impl Unpin for BitwiseEncoder
impl UnwindSafe for BitwiseEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more