#[repr(transparent)]pub struct Px(pub i64);Expand description
A new type for formatting the fixed-precision prices used in DBN.
Supports
- sign
{:+}to always print the sign - width
{:N}to specify a minimum width ofNcharacters - fill and alignment: change the default fill character from a space and alignment from the default of right-aligned. See the format docs for details
- precision
{:.N}to printNdecimal places. By default all 9 are printed
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Ord for Px
impl Ord for Px
Source§impl PartialOrd for Px
impl PartialOrd for Px
impl Copy for Px
impl Eq for Px
impl StructuralPartialEq for Px
Auto Trait Implementations§
impl Freeze for Px
impl RefUnwindSafe for Px
impl Send for Px
impl Sync for Px
impl Unpin for Px
impl UnsafeUnpin for Px
impl UnwindSafe for Px
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