Struct dashu_float::round::mode::Up
source · pub struct Up;Expand description
Round toward +∞
Trait Implementations§
source§impl Round for Up
impl Round for Up
source§fn round_low_part<F: FnOnce() -> Ordering>(
_integer: &IBig,
low_sign: Sign,
_low_half_test: F
) -> Rounding
fn round_low_part<F: FnOnce() -> Ordering>(
_integer: &IBig,
low_sign: Sign,
_low_half_test: F
) -> Rounding
Calculate the rounding of the number (integer + rem), assuming rem != 0 and |rem| < 1.
low_half_test should tell |rem|.cmp(0.5) Read moreimpl Copy for Up
Auto Trait Implementations§
impl RefUnwindSafe for Up
impl Send for Up
impl Sync for Up
impl Unpin for Up
impl UnwindSafe for Up
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read moresource§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self to an expression for Diesel’s query builder. Read more