pub struct FloatParts<'a> {
pub digits: &'a str,
pub exponent: &'a str,
pub exponent_digits: &'a str,
}Expand description
The pieces of a floating number’s text an engine computes for
float_text, each an expression over the value’s magnitude.
Fields§
§digits: &'a strThe rounded magnitude’s significant digits as text, exactly as many as
are asked for, the first non-zero: 150000000000000 for 1.5e-7.
exponent: &'a strThe rounded magnitude’s power of ten, as an integer: -7 for 1.5e-7.
exponent_digits: &'a strThat power’s size as text, without a sign or padding: 7 for
1.5e-7, 100 for 1e100.
Trait Implementations§
Source§impl<'a> Clone for FloatParts<'a>
impl<'a> Clone for FloatParts<'a>
impl<'a> Copy for FloatParts<'a>
Auto Trait Implementations§
impl<'a> Forget for FloatParts<'a>
impl<'a> Freeze for FloatParts<'a>
impl<'a> Move for FloatParts<'a>
impl<'a> RefUnwindSafe for FloatParts<'a>
impl<'a> Send for FloatParts<'a>
impl<'a> Sync for FloatParts<'a>
impl<'a> Unpin for FloatParts<'a>
impl<'a> UnsafeUnpin for FloatParts<'a>
impl<'a> UnwindSafe for FloatParts<'a>
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