[][src]Struct solhop_types::Lit

pub struct Lit(_);

A literal.

Implementations

impl Lit[src]

pub fn sign(self) -> bool[src]

Returns true if literal is signed (i.e. a negated literal).

pub fn var(self) -> Var[src]

Returns the var corresponding to the literal.

pub fn index(self) -> usize[src]

Returns the actual value stored inside that can be used to index arrays.

pub fn new(var: Var, sign: bool) -> Lit[src]

Create lit from var and sign

Trait Implementations

impl Clone for Lit[src]

impl Copy for Lit[src]

impl Debug for Lit[src]

impl Not for Lit[src]

type Output = Self

The resulting type after applying the ! operator.

fn not(self) -> Self[src]

Returns x for -x and -x for x.

impl PartialEq<Lit> for Lit[src]

impl StructuralPartialEq 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]

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.