pub enum QuantKind {
Lambda(BoxSlice<ProofIdx>),
NamedQuant(IString),
UnnamedQuant {
name: IString,
id: usize,
},
}
Expand description
Represents an ID string of the form name!id
.
Variants§
Lambda(BoxSlice<ProofIdx>)
NamedQuant(IString)
UnnamedQuant
Represents a name string of the form name!id
Implementations§
Trait Implementations§
Source§impl DisplayWithCtxt<DisplayCtxt<'_>, ()> for &QuantKind
impl DisplayWithCtxt<DisplayCtxt<'_>, ()> for &QuantKind
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
).impl Eq for QuantKind
impl StructuralPartialEq for QuantKind
Auto Trait Implementations§
impl Freeze for QuantKind
impl RefUnwindSafe for QuantKind
impl Send for QuantKind
impl Sync for QuantKind
impl Unpin for QuantKind
impl UnwindSafe for QuantKind
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