[−][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 Clone for Lit
[src]
impl Copy for Lit
[src]
impl Debug for Lit
[src]
impl Eq for Lit
[src]
impl PartialEq<Lit> for Lit
[src]
impl StructuralEq for Lit
[src]
impl StructuralPartialEq for Lit
[src]
impl TryFrom<i32> for Lit
[src]
Auto Trait Implementations
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,