Enum fv_template::rt::Part
source · pub enum Part<'a> {
Text(&'a str),
Hole(&'a str),
}Expand description
A fragment of a template.
A set of Parts can be concatenated to form a user-facing representation
of a template.
Variants§
Text(&'a str)
A plain text fragment.
Hole(&'a str)
A hole in the template with a corresponding label to fill.
Trait Implementations§
source§impl<'a> PartialEq<Part<'a>> for Part<'a>
impl<'a> PartialEq<Part<'a>> for Part<'a>
impl<'a> Copy for Part<'a>
impl<'a> Eq for Part<'a>
impl<'a> StructuralEq for Part<'a>
impl<'a> StructuralPartialEq for Part<'a>
Auto Trait Implementations§
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> 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