pub enum Piece<'a> {
Text(&'a str),
Placeholder {
name: &'a str,
before: &'a str,
after: &'a str,
},
}Expand description
A piece of template, either text or a placeholder to be substituted.
Variants§
Trait Implementations§
impl<'a> StructuralPartialEq for Piece<'a>
Auto Trait Implementations§
impl<'a> Freeze for Piece<'a>
impl<'a> RefUnwindSafe for Piece<'a>
impl<'a> Send for Piece<'a>
impl<'a> Sync for Piece<'a>
impl<'a> Unpin for Piece<'a>
impl<'a> UnwindSafe for Piece<'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