pub enum Template<T> {
NoSub(TemplateLiteral<T>),
Head(TemplateLiteral<T>),
Middle(TemplateLiteral<T>),
Tail(TemplateLiteral<T>),
}
Expand description
A template string
These include strings that are wrapped in back ticks () which allows for interpolating any js expression between
${and
}`
Variants§
NoSub(TemplateLiteral<T>)
Head(TemplateLiteral<T>)
Middle(TemplateLiteral<T>)
Tail(TemplateLiteral<T>)
Implementations§
source§impl<T> Template<T>
impl<T> Template<T>
pub fn no_sub_template(content: T, oct: bool, uni: bool, hex: bool) -> Self
pub fn template_head(content: T, oct: bool, uni: bool, hex: bool) -> Self
pub fn template_middle(content: T, oct: bool, uni: bool, hex: bool) -> Self
pub fn template_tail(content: T, oct: bool, uni: bool, hex: bool) -> Self
pub fn is_head(&self) -> bool
pub fn is_middle(&self) -> bool
pub fn is_tail(&self) -> bool
pub fn is_no_sub(&self) -> bool
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Template<T>> for Template<T>
impl<T: PartialEq> PartialEq<Template<T>> for Template<T>
impl<T: Eq> Eq for Template<T>
impl<T> StructuralEq for Template<T>
impl<T> StructuralPartialEq for Template<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Template<T>where T: RefUnwindSafe,
impl<T> Send for Template<T>where T: Send,
impl<T> Sync for Template<T>where T: Sync,
impl<T> Unpin for Template<T>where T: Unpin,
impl<T> UnwindSafe for Template<T>where T: 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