[−][src]Struct ipasir::Lit
A literal of the IPASIR implementing solver.
Methods
impl Lit
[src]
pub unsafe fn new_unchecked(val: c_int) -> Self
[src]
Creates a new Lit
from the given value.
Safety
This does not check if the given value is zero and thus invalid.
pub fn to_raw(self) -> c_int
[src]
Returns the underlying c_int
representation of self
.
pub fn var(self) -> Var
[src]
Returns the variable of self
.
pub fn sign(self) -> Sign
[src]
Returns the sign of self
.
Trait Implementations
impl Eq for Lit
[src]
impl Copy for Lit
[src]
impl PartialEq<Lit> for Lit
[src]
impl Clone for Lit
[src]
fn clone(&self) -> Lit
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Lit
[src]
impl TryFrom<i32> for Lit
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,