pub struct Placeholder<'s> {
pub index: u32,
pub suffix: &'s str,
}Expand description
An atomic backtick-delimited template placeholder token (see
ParserOptions::template_placeholder),
carrying the parsed decimal index and any glued literal suffix.
Fields§
§index: u32§suffix: &'s strAn ident-continuation run glued directly after the placeholder
(`PLACEHOLDER-0`px -> index 0, suffix "px"), empty when none.
Mirrors #{$x}px being a single identifier rather than two tokens.
Trait Implementations§
Source§impl<'s> Clone for Placeholder<'s>
impl<'s> Clone for Placeholder<'s>
Source§fn clone(&self) -> Placeholder<'s>
fn clone(&self) -> Placeholder<'s>
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 moreimpl<'s> Copy for Placeholder<'s>
Source§impl<'s> Debug for Placeholder<'s>
impl<'s> Debug for Placeholder<'s>
impl<'s> Eq for Placeholder<'s>
Source§impl<'s> PartialEq for Placeholder<'s>
impl<'s> PartialEq for Placeholder<'s>
Source§fn eq(&self, other: &Placeholder<'s>) -> bool
fn eq(&self, other: &Placeholder<'s>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'s> StructuralPartialEq for Placeholder<'s>
Auto Trait Implementations§
impl<'s> Freeze for Placeholder<'s>
impl<'s> RefUnwindSafe for Placeholder<'s>
impl<'s> Send for Placeholder<'s>
impl<'s> Sync for Placeholder<'s>
impl<'s> Unpin for Placeholder<'s>
impl<'s> UnsafeUnpin for Placeholder<'s>
impl<'s> UnwindSafe for Placeholder<'s>
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