pub struct FormatSpec { /* private fields */ }Expand description
Format specifier struct
Used to track the format specifiers in a string
Implementations§
Source§impl FormatSpec
impl FormatSpec
Sourcepub fn parse_spec(s: &str) -> Self
pub fn parse_spec(s: &str) -> Self
Parses a string for extended format specifiers
This function may be extended in the future, but for now it only searches for : and # chars
Trait Implementations§
Source§impl Debug for FormatSpec
impl Debug for FormatSpec
Source§impl Default for FormatSpec
impl Default for FormatSpec
Source§fn default() -> FormatSpec
fn default() -> FormatSpec
Returns the “default value” for a type. Read more
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