pub enum Part<'a> {
Text(Cow<'a, str>),
Slot(Cow<'a, str>),
}Expand description
One piece of Text::parts: text (parameters filled in), or a placeholder no
argument fills, for the caller to render.
Variants§
Text(Cow<'a, str>)
Text to show as is.
Slot(Cow<'a, str>)
A {name} placeholder without an argument: a slot.
Trait Implementations§
impl<'a> Eq for Part<'a>
impl<'a> StructuralPartialEq for Part<'a>
Auto Trait Implementations§
impl<'a> Forget for Part<'a>
impl<'a> Freeze for Part<'a>
impl<'a> Move for Part<'a>
impl<'a> RefUnwindSafe for Part<'a>
impl<'a> Send for Part<'a>
impl<'a> Sync for Part<'a>
impl<'a> Unpin for Part<'a>
impl<'a> UnsafeUnpin for Part<'a>
impl<'a> UnwindSafe for Part<'a>
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