pub struct Const<'st, T>(/* private fields */);
Expand description
This struct wraps specific instances of other terms to indicate that they
are constant. Constants are named terms whose value can be extracted from a
model using Model::eval
.
To construct a Const<'st, T>
call T::new_const
where
T
implements Sort
.
Implementations§
Trait Implementations§
Source§impl<'st, X: Sorted<'st>, Y: Sorted<'st>> IntoWithStorage<'st, Array<'st, X, Y>> for Const<'st, Array<'st, X, Y>>
impl<'st, X: Sorted<'st>, Y: Sorted<'st>> IntoWithStorage<'st, Array<'st, X, Y>> for Const<'st, Array<'st, X, Y>>
Source§fn into_with_storage(self, _st: &'st Storage) -> Array<'st, X, Y>
fn into_with_storage(self, _st: &'st Storage) -> Array<'st, X, Y>
Construct a
STerm
with the presence of Storage
Source§impl<'st> IntoWithStorage<'st, Bool<'st>> for Const<'st, Bool<'st>>
impl<'st> IntoWithStorage<'st, Bool<'st>> for Const<'st, Bool<'st>>
Source§fn into_with_storage(self, _st: &'st Storage) -> Bool<'st>
fn into_with_storage(self, _st: &'st Storage) -> Bool<'st>
Construct a
STerm
with the presence of Storage
Source§impl<'st> IntoWithStorage<'st, Int<'st>> for Const<'st, Int<'st>>
impl<'st> IntoWithStorage<'st, Int<'st>> for Const<'st, Int<'st>>
Source§fn into_with_storage(self, _st: &'st Storage) -> Int<'st>
fn into_with_storage(self, _st: &'st Storage) -> Int<'st>
Construct a
STerm
with the presence of Storage
Source§impl<'st> IntoWithStorage<'st, Real<'st>> for Const<'st, Real<'st>>
impl<'st> IntoWithStorage<'st, Real<'st>> for Const<'st, Real<'st>>
Source§fn into_with_storage(self, _st: &'st Storage) -> Real<'st>
fn into_with_storage(self, _st: &'st Storage) -> Real<'st>
Construct a
STerm
with the presence of Storage
Source§impl<'st, A> QuantifierVars<'st> for Const<'st, A>where
A: StaticSorted<'st>,
impl<'st, A> QuantifierVars<'st> for Const<'st, A>where
A: StaticSorted<'st>,
Source§impl<'st, T: Sorted<'st>> Sorted<'st> for Const<'st, T>
impl<'st, T: Sorted<'st>> Sorted<'st> for Const<'st, T>
Source§type Inner = T
type Inner = T
The inner type of the term. This is used for
Const<'st, T>
where the inner type is T
.Source§fn sterm(self) -> STerm<'st>
fn sterm(self) -> STerm<'st>
Constructy the smtlib AST representation of the term with associated
storage.
Source§fn into_dynamic(self) -> Dynamic<'st>
fn into_dynamic(self) -> Dynamic<'st>
Casts the term into a dynamic term which looses static types and stores
the sort dynamically.
Source§fn _eq(self, other: impl IntoWithStorage<'st, Self::Inner>) -> Bool<'st>
fn _eq(self, other: impl IntoWithStorage<'st, Self::Inner>) -> Bool<'st>
Construct the term representing
(= self other)
impl<'st, T: Copy> Copy for Const<'st, T>
Auto Trait Implementations§
impl<'st, T> Freeze for Const<'st, T>where
T: Freeze,
impl<'st, T> RefUnwindSafe for Const<'st, T>where
T: RefUnwindSafe,
impl<'st, T> Send for Const<'st, T>where
T: Send,
impl<'st, T> Sync for Const<'st, T>where
T: Sync,
impl<'st, T> Unpin for Const<'st, T>where
T: Unpin,
impl<'st, T> UnwindSafe for Const<'st, T>where
T: UnwindSafe,
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<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 moreSource§impl<'st, T> IntoWithStorage<'st, T> for T
impl<'st, T> IntoWithStorage<'st, T> for T
Source§fn into_with_storage(self, _st: &'st Storage) -> T
fn into_with_storage(self, _st: &'st Storage) -> T
Construct a
STerm
with the presence of Storage