Enum non_std::dependencies::strs_tools::string::number::protected::write_float_options::RoundMode
[−]pub enum RoundMode {
Round,
Truncate,
}
Expand description
Enumeration for how to round floats with precision control.
Variants
Round
Round to the nearest float string with the given number of significant digits.
Truncate
Truncate the float string with the given number of significant digits.
Implementations
impl RoundMode
impl RoundMode
pub const fn prefer_round_down(&self, significand: u64) -> bool
pub const fn prefer_round_down(&self, significand: u64) -> bool
Determine if we should round down.
Trait Implementations
impl Copy for RoundMode
impl Eq for RoundMode
impl StructuralEq for RoundMode
impl StructuralPartialEq for RoundMode
Auto Trait Implementations
impl RefUnwindSafe for RoundMode
impl Send for RoundMode
impl Sync for RoundMode
impl Unpin for RoundMode
impl UnwindSafe for RoundMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
sourceimpl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
sourcefn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.