[][src]Struct ipasir::Lit

#[repr(transparent)]pub struct 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]

type Error = InvalidLitVal

The type returned in the event of a conversion error.

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]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.