pub enum TemplateIdentifier<'a> {
Implicit(usize),
Positional(usize),
Named(&'a str),
}Expand description
Placeholder identifier parsed from the template.
Variants§
Implicit(usize)
Implicit positional index inferred from the placeholder order ({} /
{:?} / etc.).
Positional(usize)
Positional index ({0} / {1:?} / etc.).
Named(&'a str)
Named field ({name} / {kind:?} / etc.).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for TemplateIdentifier<'a>
impl<'a> Clone for TemplateIdentifier<'a>
Source§fn clone(&self) -> TemplateIdentifier<'a>
fn clone(&self) -> TemplateIdentifier<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TemplateIdentifier<'a>
impl<'a> Debug for TemplateIdentifier<'a>
Source§impl<'a> PartialEq for TemplateIdentifier<'a>
impl<'a> PartialEq for TemplateIdentifier<'a>
impl<'a> Eq for TemplateIdentifier<'a>
impl<'a> StructuralPartialEq for TemplateIdentifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for TemplateIdentifier<'a>
impl<'a> RefUnwindSafe for TemplateIdentifier<'a>
impl<'a> Send for TemplateIdentifier<'a>
impl<'a> Sync for TemplateIdentifier<'a>
impl<'a> Unpin for TemplateIdentifier<'a>
impl<'a> UnwindSafe for TemplateIdentifier<'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