pub struct RoundingMode { /* private fields */ }Implementations§
Source§impl RoundingMode
impl RoundingMode
Sourcepub fn round_towards_zero() -> RoundingMode
pub fn round_towards_zero() -> RoundingMode
Create a numeral of RoundingMode sort which represents the TowardZero rounding mode.
Sourcepub fn round_towards_negative() -> RoundingMode
pub fn round_towards_negative() -> RoundingMode
Create a numeral of RoundingMode sort which represents the TowardNegative rounding mode.
Sourcepub fn round_towards_positive() -> RoundingMode
pub fn round_towards_positive() -> RoundingMode
Create a numeral of RoundingMode sort which represents the TowardPositive rounding mode.
Sourcepub fn round_nearest_ties_to_away() -> RoundingMode
pub fn round_nearest_ties_to_away() -> RoundingMode
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode.
Sourcepub fn round_nearest_ties_to_even() -> RoundingMode
pub fn round_nearest_ties_to_even() -> RoundingMode
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode.
pub fn add<A: Into<Float>, B: IntoAst<Float>>(&self, a: A, b: B) -> Float
pub fn sub<A: Into<Float>, B: IntoAst<Float>>(&self, a: A, b: B) -> Float
pub fn mul<A: Into<Float>, B: IntoAst<Float>>(&self, a: A, b: B) -> Float
pub fn div<A: Into<Float>, B: IntoAst<Float>>(&self, a: A, b: B) -> Float
Source§impl RoundingMode
impl RoundingMode
pub fn ast_eq<T: IntoAst<Self>>(&self, other: T) -> boolwhere
Self: Sized,
pub fn _eq<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
👎Deprecated: Please use eq instead
pub fn ne<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
Sourcepub fn eq<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
pub fn eq<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
Compare this Ast with another Ast, and get a Bool
representing the result.
This operation works with all possible Asts (int, real, BV, etc), but the two
Asts being compared must be the same type.
pub fn _safe_eq<T: IntoAst<Self>>(&self, other: T) -> Result<Bool, SortDiffers>where
Self: Sized,
👎Deprecated: Please use safe_eq instead
Trait Implementations§
Source§impl Ast for RoundingMode
impl Ast for RoundingMode
fn eq<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
fn ne<T: IntoAst<Self>>(&self, other: T) -> Boolwhere
Self: Sized,
fn get_ctx(&self) -> &Context
fn get_z3_ast(&self) -> Z3_ast
Source§fn simplify(&self) -> Selfwhere
Self: Sized,
fn simplify(&self) -> Selfwhere
Self: Sized,
Simplify the
Ast. Returns a new Ast which is equivalent,
but simplified using algebraic simplification rules, such as
constant propagation.Source§fn substitute<T: Ast>(&self, substitutions: &[(&T, &T)]) -> Selfwhere
Self: Sized,
fn substitute<T: Ast>(&self, substitutions: &[(&T, &T)]) -> Selfwhere
Self: Sized,
Performs substitution on the
Ast. The slice substitutions contains a
list of pairs with a “from” Ast that will be substituted by a “to” Ast.Source§fn num_children(&self) -> usize
fn num_children(&self) -> usize
Return the number of children of this
Ast. Read morefn safe_decl(&self) -> Result<FuncDecl, IsNotApp>
fn check_ctx(&self, ctx: &Context)
Source§impl Clone for RoundingMode
impl Clone for RoundingMode
Source§impl Debug for RoundingMode
impl Debug for RoundingMode
Source§impl Display for RoundingMode
impl Display for RoundingMode
Source§impl Drop for RoundingMode
impl Drop for RoundingMode
Source§impl From<&RoundingMode> for RoundingMode
impl From<&RoundingMode> for RoundingMode
Source§impl From<RoundingMode> for Z3_ast
impl From<RoundingMode> for Z3_ast
Source§fn from(ast: RoundingMode) -> Self
fn from(ast: RoundingMode) -> Self
Converts to this type from the input type.
Source§impl Hash for RoundingMode
impl Hash for RoundingMode
Source§impl<T: IntoAst<RoundingMode> + Clone> PartialEq<T> for RoundingMode
impl<T: IntoAst<RoundingMode> + Clone> PartialEq<T> for RoundingMode
Source§impl Solvable for RoundingMode
impl Solvable for RoundingMode
Source§type ModelInstance = RoundingMode
type ModelInstance = RoundingMode
Source§fn read_from_model(
&self,
model: &Model,
model_completion: bool,
) -> Option<Self::ModelInstance>
fn read_from_model( &self, model: &Model, model_completion: bool, ) -> Option<Self::ModelInstance>
Source§fn generate_constraint(&self, model: &Self::ModelInstance) -> Bool
fn generate_constraint(&self, model: &Self::ModelInstance) -> Bool
impl Eq for RoundingMode
Auto Trait Implementations§
impl Freeze for RoundingMode
impl RefUnwindSafe for RoundingMode
impl !Send for RoundingMode
impl !Sync for RoundingMode
impl Unpin for RoundingMode
impl UnsafeUnpin for RoundingMode
impl UnwindSafe for RoundingMode
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