pub enum MessagePart {
String(String),
Placeholder,
Format(Box<dyn Format>),
}
Expand description
Either some plain text (string) or something to be formatted.
Variants§
String(String)
A message part which is a piece of plain text that needs no formatting.
Placeholder
Magic value used internally by some formats. Currently
only used for PluralFormat
.
Format(Box<dyn Format>)
A message part which needs to be formatted.
Auto Trait Implementations§
impl Freeze for MessagePart
impl !RefUnwindSafe for MessagePart
impl !Send for MessagePart
impl !Sync for MessagePart
impl Unpin for MessagePart
impl !UnwindSafe for MessagePart
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