pub struct HexFloat<T: FixedValue> { /* private fields */ }Expand description
A type-preserving adapter for C printf hexadecimal floating formatting.
Implementations§
Source§impl<T: FixedValue> HexFloat<T>
impl<T: FixedValue> HexFloat<T>
Sourcepub fn space_sign(self) -> Self
pub fn space_sign(self) -> Self
Requests C’s space-sign flag for a nonnegative value.
A Rust + formatting flag overrides the space. For example,
format!("{:x}", hex_float(1.5_f32).space_sign()) is equivalent to
printf("% a", (double)1.5f), while formatting the same wrapper with
{:+x} is equivalent to printf("%+ a", (double)1.5f).
Trait Implementations§
impl<T: Copy + FixedValue> Copy for HexFloat<T>
Source§impl<T: FixedValue> LowerHex for HexFloat<T>
impl<T: FixedValue> LowerHex for HexFloat<T>
Auto Trait Implementations§
impl<T> Forget for HexFloat<T>
impl<T> Freeze for HexFloat<T>where
T: Freeze,
impl<T> RefUnwindSafe for HexFloat<T>where
T: RefUnwindSafe,
impl<T> Send for HexFloat<T>where
T: Send,
impl<T> Sync for HexFloat<T>where
T: Sync,
impl<T> Unpin for HexFloat<T>where
T: Unpin,
impl<T> UnsafeUnpin for HexFloat<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HexFloat<T>where
T: UnwindSafe,
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