pub struct Assignment {
pub literal: TermIdx,
pub value: bool,
}
Expand description
Assignment to a literal.
Fields§
§literal: TermIdx
The boolean term that was assigned.
value: bool
Was it assigned true or false?
Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
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 Assignment
impl Debug for Assignment
Source§impl DisplayWithCtxt<DisplayCtxt<'_>, ()> for Assignment
impl DisplayWithCtxt<DisplayCtxt<'_>, ()> for Assignment
Source§fn fmt_with(
self,
f: &mut Formatter<'_>,
ctxt: &DisplayCtxt<'_>,
_data: &mut (),
) -> Result
fn fmt_with( self, f: &mut Formatter<'_>, ctxt: &DisplayCtxt<'_>, _data: &mut (), ) -> Result
Display the term with the given context and data. Should not be used
outside of the implementations of this trait.
Source§fn with(self, ctxt: &Ctxt) -> DisplayWrapperEmpty<'_, Ctxt, Data, Self>
fn with(self, ctxt: &Ctxt) -> DisplayWrapperEmpty<'_, Ctxt, Data, Self>
Wrap the receiver in an object which carries along a parser context to
enable efficient printing of terms. For quick debugging use the
debug
method instead to avoid building a full context.Source§fn with_data<'a, 'b>(
self,
ctxt: &'a Ctxt,
data: &'b mut Data,
) -> DisplayWrapperData<'a, 'b, Ctxt, Data, Self>where
Self: Copy,
fn with_data<'a, 'b>(
self,
ctxt: &'a Ctxt,
data: &'b mut Data,
) -> DisplayWrapperData<'a, 'b, Ctxt, Data, Self>where
Self: Copy,
To be used with
TermIdx
or SynthIdx
where we want to pass in the
surrounding quantifier as data
such that qvars are printed with names.
Otherwise, always use with
instead (which uses default data
).Source§impl Hash for Assignment
impl Hash for Assignment
Source§impl PartialEq for Assignment
impl PartialEq for Assignment
impl Copy for Assignment
impl Eq for Assignment
impl StructuralPartialEq for Assignment
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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