pub struct TemplatePlaceholder {
pub prefix: &'static str,
}Expand description
Configuration for a backtick-delimited template placeholder.
A placeholder has the shape `<prefix><decimal index>` (e.g. with
prefix = "PLACEHOLDER-": `PLACEHOLDER-0`). The opening and closing
backticks are fixed; only prefix is supplied by the downstream consumer, so
oxc-css-parser stays agnostic to its content and only uses it to recognize and index
the token.
Backtick is not valid CSS/SCSS/Sass syntax (it is only Less’s inline-JS
delimiter), so this is intended for SCSS parsing only; see
ParserOptions::template_placeholder.
Fields§
§prefix: &'static strText after the opening backtick that marks the start of a placeholder,
before its decimal index (e.g. "PLACEHOLDER-").
Trait Implementations§
Source§impl Clone for TemplatePlaceholder
impl Clone for TemplatePlaceholder
Source§fn clone(&self) -> TemplatePlaceholder
fn clone(&self) -> TemplatePlaceholder
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 Copy for TemplatePlaceholder
Source§impl Debug for TemplatePlaceholder
impl Debug for TemplatePlaceholder
impl Eq for TemplatePlaceholder
Source§impl PartialEq for TemplatePlaceholder
impl PartialEq for TemplatePlaceholder
Source§fn eq(&self, other: &TemplatePlaceholder) -> bool
fn eq(&self, other: &TemplatePlaceholder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemplatePlaceholder
Auto Trait Implementations§
impl Freeze for TemplatePlaceholder
impl RefUnwindSafe for TemplatePlaceholder
impl Send for TemplatePlaceholder
impl Sync for TemplatePlaceholder
impl Unpin for TemplatePlaceholder
impl UnsafeUnpin for TemplatePlaceholder
impl UnwindSafe for TemplatePlaceholder
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