pub struct Fixed<T: FixedValue> { /* private fields */ }Expand description
A type-preserving adapter for C printf lowercase fixed-point formatting.
Implementations§
Source§impl<T: FixedValue> Fixed<T>
impl<T: FixedValue> Fixed<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!("{}", fixed(1.25_f32).space_sign()) is equivalent to
printf("% f", (double)1.25f), while formatting the same wrapper with
{:+} is equivalent to printf("%+ f", (double)1.25f).
Trait Implementations§
impl<T: Copy + FixedValue> Copy for Fixed<T>
Auto Trait Implementations§
impl<T> Forget for Fixed<T>
impl<T> Freeze for Fixed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Fixed<T>where
T: RefUnwindSafe,
impl<T> Send for Fixed<T>where
T: Send,
impl<T> Sync for Fixed<T>where
T: Sync,
impl<T> Unpin for Fixed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Fixed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Fixed<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