pub enum LineContent {
Plain(String),
Template(LineTemplate),
}Expand description
The content of a single output line — either a plain string or a template with interpolation slots and plural selects.
Variants§
Plain(String)
Template(LineTemplate)
Trait Implementations§
Source§impl Clone for LineContent
impl Clone for LineContent
Source§fn clone(&self) -> LineContent
fn clone(&self) -> LineContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineContent
impl Debug for LineContent
Source§impl PartialEq for LineContent
impl PartialEq for LineContent
Source§fn eq(&self, other: &LineContent) -> bool
fn eq(&self, other: &LineContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineContent
Auto Trait Implementations§
impl Freeze for LineContent
impl RefUnwindSafe for LineContent
impl Send for LineContent
impl Sync for LineContent
impl Unpin for LineContent
impl UnsafeUnpin for LineContent
impl UnwindSafe for LineContent
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