Struct rt_format::parser::ParsedFormat [−][src]
pub struct ParsedFormat<'a, V: FormatArgument> {
pub segments: Vec<Segment<'a, V>>,
}Expand description
A representation of the formatting string and associated values, ready to be formatted.
Fields
segments: Vec<Segment<'a, V>>A vector of formatting string segments.
Implementations
pub fn parse<P, N>(
format: &'a str,
positional: &'a P,
named: &'a N
) -> Result<Self, usize> where
P: PositionalArguments<'a, V> + ?Sized,
N: NamedArguments<V>,
pub fn parse<P, N>(
format: &'a str,
positional: &'a P,
named: &'a N
) -> Result<Self, usize> where
P: PositionalArguments<'a, V> + ?Sized,
N: NamedArguments<V>,
Parses the formatting string, using given positional and named arguments. Does not perform any formatting. It just parses the formatting string, validates that all the arguments are present, and that each argument supports the requested format.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'a, V> RefUnwindSafe for ParsedFormat<'a, V> where
V: RefUnwindSafe,
impl<'a, V> Send for ParsedFormat<'a, V> where
V: Sync,
impl<'a, V> Sync for ParsedFormat<'a, V> where
V: Sync,
impl<'a, V> Unpin for ParsedFormat<'a, V>
impl<'a, V> UnwindSafe for ParsedFormat<'a, V> where
V: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
