Struct minijinja::syntax::SyntaxConfig
source · pub struct SyntaxConfig;
Expand description
The default delimiter configuration for the environment and the parser.
Implementations§
source§impl SyntaxConfig
impl SyntaxConfig
sourcepub fn block_delimiters(&self) -> (&str, &str)
pub fn block_delimiters(&self) -> (&str, &str)
Returns the block delimiters.
sourcepub fn variable_delimiters(&self) -> (&str, &str)
pub fn variable_delimiters(&self) -> (&str, &str)
Returns the variable delimiters.
sourcepub fn comment_delimiters(&self) -> (&str, &str)
pub fn comment_delimiters(&self) -> (&str, &str)
Returns the comment delimiters.
sourcepub fn line_statement_prefix(&self) -> Option<&str>
pub fn line_statement_prefix(&self) -> Option<&str>
Returns the line statement prefix.
sourcepub fn line_comment_prefix(&self) -> Option<&str>
pub fn line_comment_prefix(&self) -> Option<&str>
Returns the line comment prefix.
Trait Implementations§
source§impl Clone for SyntaxConfig
impl Clone for SyntaxConfig
source§fn clone(&self) -> SyntaxConfig
fn clone(&self) -> SyntaxConfig
Returns a copy 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 Debug for SyntaxConfig
impl Debug for SyntaxConfig
source§impl Default for SyntaxConfig
impl Default for SyntaxConfig
source§fn default() -> SyntaxConfig
fn default() -> SyntaxConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyntaxConfig
impl RefUnwindSafe for SyntaxConfig
impl Send for SyntaxConfig
impl Sync for SyntaxConfig
impl Unpin for SyntaxConfig
impl UnwindSafe for SyntaxConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)