pub struct Int<'st>(/* private fields */);
Expand description
A Int
is a term containing a
integer. You can read more
here..
Implementations§
Source§impl<'st> Int<'st>
impl<'st> Int<'st>
Sourcepub fn new(
st: &'st Storage,
value: impl IntoWithStorage<'st, Int<'st>>,
) -> Int<'st>
pub fn new( st: &'st Storage, value: impl IntoWithStorage<'st, Int<'st>>, ) -> Int<'st>
Construct a new integer.
Sourcepub fn gt(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
pub fn gt(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
Construct the term expressing (> self other)
Sourcepub fn ge(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
pub fn ge(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
Construct the term expressing (>= self other)
Sourcepub fn lt(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
pub fn lt(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
Construct the term expressing (< self other)
Sourcepub fn le(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
pub fn le(self, other: impl IntoWithStorage<'st, Self>) -> Bool<'st>
Construct the term expressing (<= self other)
Trait Implementations§
Source§impl<'st, R> AddAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> AddAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn add_assign(&mut self, rhs: R)
fn add_assign(&mut self, rhs: R)
Performs the
+=
operation. Read moreSource§impl<'st, R> DivAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> DivAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn div_assign(&mut self, rhs: R)
fn div_assign(&mut self, rhs: R)
Performs the
/=
operation. Read moreSource§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, Int<'st>> for i64
impl<'st> IntoWithStorage<'st, Int<'st>> for i64
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, R> MulAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> MulAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn mul_assign(&mut self, rhs: R)
fn mul_assign(&mut self, rhs: R)
Performs the
*=
operation. Read moreSource§impl<'st, R> RemAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> RemAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn rem_assign(&mut self, rhs: R)
fn rem_assign(&mut self, rhs: R)
Performs the
%=
operation. Read moreSource§impl<'st, R> ShlAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> ShlAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn shl_assign(&mut self, rhs: R)
fn shl_assign(&mut self, rhs: R)
Performs the
<<=
operation. Read moreSource§impl<'st, R> ShrAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> ShrAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn shr_assign(&mut self, rhs: R)
fn shr_assign(&mut self, rhs: R)
Performs the
>>=
operation. Read moreSource§impl<'st> StaticSorted<'st> for Int<'st>
impl<'st> StaticSorted<'st> for Int<'st>
Source§type Inner = Int<'st>
type Inner = Int<'st>
The inner type of the term. This is used for
Const<'st, T>
where the inner type is T
.Source§impl<'st, R> SubAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
impl<'st, R> SubAssign<R> for Int<'st>where
R: IntoWithStorage<'st, Int<'st>>,
Source§fn sub_assign(&mut self, rhs: R)
fn sub_assign(&mut self, rhs: R)
Performs the
-=
operation. Read moreimpl<'st> Copy for Int<'st>
Auto Trait Implementations§
impl<'st> Freeze for Int<'st>
impl<'st> !RefUnwindSafe for Int<'st>
impl<'st> !Send for Int<'st>
impl<'st> !Sync for Int<'st>
impl<'st> Unpin for Int<'st>
impl<'st> !UnwindSafe for Int<'st>
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
Source§impl<'st, T> Sorted<'st> for Twhere
T: StaticSorted<'st>,
impl<'st, T> Sorted<'st> for Twhere
T: StaticSorted<'st>,
Source§type Inner = <T as StaticSorted<'st>>::Inner
type Inner = <T as StaticSorted<'st>>::Inner
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 from_dynamic(d: Dynamic<'st>) -> Self
fn from_dynamic(d: Dynamic<'st>) -> Self
Casts a dynamically typed term into a concrete type
Source§fn try_from_dynamic(d: Dynamic<'st>) -> Option<Self>
fn try_from_dynamic(d: Dynamic<'st>) -> Option<Self>
Casts a dynamically typed term into a concrete type iff the dynamic sort
matches
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)