pub enum TemplatePart<P> {
Literal(String),
Placeholder(P),
}Expand description
One parsed template part.
Variants§
Trait Implementations§
Source§impl<P: Clone> Clone for TemplatePart<P>
impl<P: Clone> Clone for TemplatePart<P>
Source§fn clone(&self) -> TemplatePart<P>
fn clone(&self) -> TemplatePart<P>
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<P: Debug> Debug for TemplatePart<P>
impl<P: Debug> Debug for TemplatePart<P>
impl<P: Eq> Eq for TemplatePart<P>
Source§impl<P: PartialEq> PartialEq for TemplatePart<P>
impl<P: PartialEq> PartialEq for TemplatePart<P>
impl<P: PartialEq> StructuralPartialEq for TemplatePart<P>
Auto Trait Implementations§
impl<P> Freeze for TemplatePart<P>where
P: Freeze,
impl<P> RefUnwindSafe for TemplatePart<P>where
P: RefUnwindSafe,
impl<P> Send for TemplatePart<P>where
P: Send,
impl<P> Sync for TemplatePart<P>where
P: Sync,
impl<P> Unpin for TemplatePart<P>where
P: Unpin,
impl<P> UnsafeUnpin for TemplatePart<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for TemplatePart<P>where
P: UnwindSafe,
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