pub struct FormatSpec {
pub fill: char,
pub align: Align,
pub sign: Sign,
pub alt: bool,
pub zero: bool,
pub width: u16,
pub grouping: Grouping,
pub precision: Option<u16>,
pub ty: FmtType,
}Fields§
§fill: char§align: Align§sign: Sign§alt: bool#: 0x/0o/0b prefix.
zero: bool0: pad with zeros after the sign.
width: u16§grouping: Grouping§precision: Option<u16>§ty: FmtTypeImplementations§
Source§impl FormatSpec
impl FormatSpec
Sourcepub fn decode(w: [u32; 2]) -> FormatSpec
pub fn decode(w: [u32; 2]) -> FormatSpec
Unpacks FormatSpec::encode’s words.
Trait Implementations§
Source§impl Clone for FormatSpec
impl Clone for FormatSpec
impl Copy for FormatSpec
Source§impl Debug for FormatSpec
impl Debug for FormatSpec
Source§impl Default for FormatSpec
impl Default for FormatSpec
impl Eq for FormatSpec
Source§impl PartialEq for FormatSpec
impl PartialEq for FormatSpec
impl StructuralPartialEq for FormatSpec
Auto Trait Implementations§
impl Freeze for FormatSpec
impl RefUnwindSafe for FormatSpec
impl Send for FormatSpec
impl Sync for FormatSpec
impl Unpin for FormatSpec
impl UnsafeUnpin for FormatSpec
impl UnwindSafe for FormatSpec
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