Struct pw_format::FormatString
source · 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
source§fn eq(&self, other: &FormatString) -> bool
fn eq(&self, other: &FormatString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FormatString
impl StructuralPartialEq for FormatString
Auto Trait Implementations§
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