Enum runtime_format::ParseSegment
source · Expand description
An enum representing the parsed portion of a format string
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Literal(&'a str)
A string literal to be included as is
Key(&'a str)
A keyed value, that should be looked up using FormatKey
Trait Implementations§
source§impl<'a> Clone for ParseSegment<'a>
impl<'a> Clone for ParseSegment<'a>
source§fn clone(&self) -> ParseSegment<'a>
fn clone(&self) -> ParseSegment<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more