Struct Real

Source
pub struct Real<'st>(/* private fields */);
Expand description

A Real is a term containing a real. You can read more here..

Implementations§

Source§

impl<'st> Real<'st>

Source

pub fn sort() -> Sort<'st>

Returns the sort of reals.

Source

pub fn gt(self, other: impl Into<Self>) -> Bool<'st>

Construct the term expressing (> self other)

Source

pub fn ge(self, other: impl Into<Self>) -> Bool<'st>

Construct the term expressing (>= self other)

Source

pub fn lt(self, other: impl Into<Self>) -> Bool<'st>

Construct the term expressing (< self other)

Source

pub fn le(self, other: impl Into<Self>) -> Bool<'st>

Construct the term expressing (<= self other)

Source

pub fn abs(self) -> Real<'st>

Construct the term expressing (abs self)

Trait Implementations§

Source§

impl<'st, R> Add<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

type Output = Real<'st>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: R) -> Self::Output

Performs the + operation. Read more
Source§

impl<'st> Add<Real<'st>> for f64

Source§

type Output = Real<'st>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Real<'st>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'st, R> AddAssign<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

fn add_assign(&mut self, rhs: R)

Performs the += operation. Read more
Source§

impl<'st> Clone for Real<'st>

Source§

fn clone(&self) -> Real<'st>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'st> Debug for Real<'st>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Real<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'st, R> Div<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

type Output = Real<'st>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: R) -> Self::Output

Performs the / operation. Read more
Source§

impl<'st> Div<Real<'st>> for f64

Source§

type Output = Real<'st>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Real<'st>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'st, R> DivAssign<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

fn div_assign(&mut self, rhs: R)

Performs the /= operation. Read more
Source§

impl<'st> From<Const<'st, Real<'st>>> for Real<'st>

Source§

fn from(c: Const<'st, Real<'st>>) -> Self

Converts to this type from the input type.
Source§

impl<'st> From<Real<'st>> for Dynamic<'st>

Source§

fn from(i: Real<'st>) -> Self

Converts to this type from the input type.
Source§

impl<'st> From<Real<'st>> for STerm<'st>

Source§

fn from(i: Real<'st>) -> Self

Converts to this type from the input type.
Source§

impl<'st> From<STerm<'st>> for Real<'st>

Source§

fn from(t: STerm<'st>) -> Self

Converts to this type from the input type.
Source§

impl<'st> IntoWithStorage<'st, Real<'st>> for Const<'st, Real<'st>>

Source§

fn into_with_storage(self, _st: &'st Storage) -> Real<'st>

Construct a STerm with the presence of Storage
Source§

impl<'st> IntoWithStorage<'st, Real<'st>> for f64

Source§

fn into_with_storage(self, st: &'st Storage) -> Real<'st>

Construct a STerm with the presence of Storage
Source§

impl<'st> IntoWithStorage<'st, Real<'st>> for i64

Source§

fn into_with_storage(self, st: &'st Storage) -> Real<'st>

Construct a STerm with the presence of Storage
Source§

impl<'st, R> Mul<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

type Output = Real<'st>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: R) -> Self::Output

Performs the * operation. Read more
Source§

impl<'st> Mul<Real<'st>> for f64

Source§

type Output = Real<'st>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Real<'st>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'st, R> MulAssign<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

fn mul_assign(&mut self, rhs: R)

Performs the *= operation. Read more
Source§

impl Neg for Real<'_>

Source§

type Output = Real<'_>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<'st> StaticSorted<'st> for Real<'st>

Source§

const AST_SORT: Sort<'static>

The sort of this sort.
Source§

type Inner = Real<'st>

The inner type of the term. This is used for Const<'st, T> where the inner type is T.
Source§

fn static_st(&self) -> &'st Storage

The storage associated with the term.
Source§

fn sort() -> Sort<'st>

The sort of this sort.
Source§

fn new_const(st: &'st Storage, name: &str) -> Const<'st, Self>

Construct a new constante of this sort.
Source§

impl<'st, R> Sub<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

type Output = Real<'st>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: R) -> Self::Output

Performs the - operation. Read more
Source§

impl<'st> Sub<Real<'st>> for f64

Source§

type Output = Real<'st>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Real<'st>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'st, R> SubAssign<R> for Real<'st>
where R: IntoWithStorage<'st, Real<'st>>,

Source§

fn sub_assign(&mut self, rhs: R)

Performs the -= operation. Read more
Source§

impl<'st> Copy for Real<'st>

Auto Trait Implementations§

§

impl<'st> Freeze for Real<'st>

§

impl<'st> !RefUnwindSafe for Real<'st>

§

impl<'st> !Send for Real<'st>

§

impl<'st> !Sync for Real<'st>

§

impl<'st> Unpin for Real<'st>

§

impl<'st> !UnwindSafe for Real<'st>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<'st, T> IntoWithStorage<'st, T> for T

Source§

fn into_with_storage(self, _st: &'st Storage) -> T

Construct a STerm with the presence of Storage
Source§

impl<'st, T> Sorted<'st> for T
where T: StaticSorted<'st>,

Source§

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 sort(&self) -> Sort<'st>

The sort of the term.
Source§

fn is_sort(sort: Sort<'st>) -> bool

Check if a sort is of this type.
Source§

fn st(&self) -> &'st Storage

The storage associated with any term of this sort.
Source§

fn sterm(self) -> STerm<'st>

Constructy the smtlib AST representation of the term with associated storage.
Source§

fn term(self) -> &'st Term<'st>

Construct the smtlib AST representation of term.
Source§

fn from_dynamic(d: Dynamic<'st>) -> Self
where Self: From<(STerm<'st>, Sort<'st>)>,

Casts a dynamically typed term into a concrete type
Source§

fn try_from_dynamic(d: Dynamic<'st>) -> Option<Self>
where Self: From<(STerm<'st>, Sort<'st>)>,

Casts a dynamically typed term into a concrete type iff the dynamic sort matches
Source§

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>

Construct the term representing (= self other)
Source§

fn _neq(self, other: impl IntoWithStorage<'st, Self::Inner>) -> Bool<'st>

Construct the term representing (distinct self other)
Source§

fn labeled(self) -> (Label<Self>, Self::Inner)
where Self::Inner: From<STerm<'st>>,

Wraps the term in a a label, which can be used to extract information from models at a later point.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.