Trait LowerExp
trait LowerExp: PointeeSized
e formatting.
The LowerExp trait should format its output in scientific notation with a lower-case e.
For more information on formatters, see the module-level documentation.
Examples
Basic usage with f64:
let x = 42.0; // 42.0 is '4.2e1' in scientific notation
assert_eq!;
Implementing LowerExp on a type:
use fmt;
;
let l = Length;
assert_eq!;
assert_eq!;
Required Methods
fn fmt(self: &Self, f: &mut Formatter<'_>) -> ResultFormats the value using the given formatter.
Errors
This function should return
Errif, and only if, the providedFormatterreturnsErr. String formatting is considered an infallible operation; this function only returns aResultbecause writing to the underlying stream might fail and it must provide a way to propagate the fact that an error has occurred back up the stack.
Implementors
impl<T: PointeeSized + LowerExp> LowerExp for &mut Timpl LowerExp for i8impl LowerExp for u64impl LowerExp for u8impl LowerExp for isizeimpl LowerExp for i16impl LowerExp for usizeimpl LowerExp for u16impl LowerExp for i128impl LowerExp for f32impl<T> LowerExp for NonZero<T>impl LowerExp for i32impl LowerExp for u128impl LowerExp for f64impl LowerExp for u32impl<T: PointeeSized + LowerExp> LowerExp for &Timpl LowerExp for f16impl LowerExp for i64