Enum malachite_base::num::conversion::string::options::SciSizeOptions
source · pub enum SciSizeOptions {
Complete,
Precision(u64),
Scale(u64),
}
Expand description
A struct
determining how much “detail” should be used when creating a scientific-notation
string.
Variants§
Complete
Indicates that the number should be rendered in its full precision.
Precision(u64)
Indicates how many significant figures should be shown. The precision cannot be zero.
Scale(u64)
Indicates how many digits after the decimal (or other-base) point should be shown. For example, if the base is 10 and the scale is 2, then up to two digits after the decimal point should be shown.
Trait Implementations§
source§impl Clone for SciSizeOptions
impl Clone for SciSizeOptions
source§fn clone(&self) -> SciSizeOptions
fn clone(&self) -> SciSizeOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SciSizeOptions
impl Debug for SciSizeOptions
source§impl Default for SciSizeOptions
impl Default for SciSizeOptions
source§fn default() -> SciSizeOptions
fn default() -> SciSizeOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for SciSizeOptions
impl PartialEq for SciSizeOptions
impl Copy for SciSizeOptions
impl Eq for SciSizeOptions
impl StructuralPartialEq for SciSizeOptions
Auto Trait Implementations§
impl Freeze for SciSizeOptions
impl RefUnwindSafe for SciSizeOptions
impl Send for SciSizeOptions
impl Sync for SciSizeOptions
impl Unpin for SciSizeOptions
impl UnwindSafe for SciSizeOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more