pub struct FormatString {
pub fragments: Vec<FormatFragment>,
}
Expand description
A parsed printf format string.
Fields§
§fragments: Vec<FormatFragment>
The FormatFragments that comprise the FormatString.
Implementations§
Source§impl FormatString
impl FormatString
Sourcepub fn parse_printf(s: &str) -> Result<Self, String>
pub fn parse_printf(s: &str) -> Result<Self, String>
Parses a printf style format string.
Sourcepub fn parse_core_fmt(s: &str) -> Result<Self, String>
pub fn parse_core_fmt(s: &str) -> Result<Self, String>
Parses a core::fmt style format string.
Trait Implementations§
Source§impl Debug for FormatString
impl Debug for FormatString
Source§impl PartialEq for FormatString
impl PartialEq for FormatString
impl Eq for FormatString
impl StructuralPartialEq for FormatString
Auto Trait Implementations§
impl Freeze for FormatString
impl RefUnwindSafe for FormatString
impl Send for FormatString
impl Sync for FormatString
impl Unpin for FormatString
impl UnwindSafe for FormatString
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