#[non_exhaustive]pub enum Part<'p> {
Text(&'p str),
BidiIsolation(Isolation),
Expression(ExpressionPart<'p>),
Markup(MarkupPart<'p>),
Fallback(FallbackSource<'p>),
}Expand description
A part of a formatted message. Concatenated, the parts are the string output.
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.
Text(&'p str)
Literal text.
BidiIsolation(Isolation)
A bidi isolation control (the Default Bidi Strategy).
Expression(ExpressionPart<'p>)
A formatted placeholder.
Markup(MarkupPart<'p>)
Markup (it writes no text).
Fallback(FallbackSource<'p>)
A placeholder that resolved to a fallback value: {source}.
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for Part<'p>
impl<'p> !Send for Part<'p>
impl<'p> !Sync for Part<'p>
impl<'p> !UnwindSafe for Part<'p>
impl<'p> Freeze for Part<'p>
impl<'p> Unpin for Part<'p>
impl<'p> UnsafeUnpin for Part<'p>
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