Struct tvix_eval::value::WRITE_FLOAT_OPTIONS
source · struct WRITE_FLOAT_OPTIONS {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = WriteFloatOptions>§
sourcepub fn max_significant_digits(&self) -> Option<NonZero<usize>>
pub fn max_significant_digits(&self) -> Option<NonZero<usize>>
Get the maximum number of significant digits to write.
sourcepub fn min_significant_digits(&self) -> Option<NonZero<usize>>
pub fn min_significant_digits(&self) -> Option<NonZero<usize>>
Get the minimum number of significant digits to write.
sourcepub fn positive_exponent_break(&self) -> Option<NonZero<i32>>
pub fn positive_exponent_break(&self) -> Option<NonZero<i32>>
Get the maximum exponent prior to using scientific notation.
sourcepub fn negative_exponent_break(&self) -> Option<NonZero<i32>>
pub fn negative_exponent_break(&self) -> Option<NonZero<i32>>
Get the minimum exponent prior to using scientific notation.
sourcepub fn round_mode(&self) -> RoundMode
pub fn round_mode(&self) -> RoundMode
Get the rounding mode for writing digits with precision control.
sourcepub fn trim_floats(&self) -> bool
pub fn trim_floats(&self) -> bool
Get if we should trim a trailing ".0"
from floats.
sourcepub fn decimal_point(&self) -> u8
pub fn decimal_point(&self) -> u8
Get the character to separate the integer from the fraction components.
sourcepub fn nan_string(&self) -> Option<&'static [u8]>
pub fn nan_string(&self) -> Option<&'static [u8]>
Get the string representation for NaN
.
sourcepub fn inf_string(&self) -> Option<&'static [u8]>
pub fn inf_string(&self) -> Option<&'static [u8]>
Get the short string representation for Infinity
.
sourcepub fn rebuild(&self) -> OptionsBuilder
pub fn rebuild(&self) -> OptionsBuilder
Create OptionsBuilder using existing values.
Trait Implementations§
source§impl Deref for WRITE_FLOAT_OPTIONS
impl Deref for WRITE_FLOAT_OPTIONS
impl LazyStatic for WRITE_FLOAT_OPTIONS
Auto Trait Implementations§
impl Freeze for WRITE_FLOAT_OPTIONS
impl RefUnwindSafe for WRITE_FLOAT_OPTIONS
impl Send for WRITE_FLOAT_OPTIONS
impl Sync for WRITE_FLOAT_OPTIONS
impl Unpin for WRITE_FLOAT_OPTIONS
impl UnwindSafe for WRITE_FLOAT_OPTIONS
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