pub struct EndifTemplateExpr {
pub strip: Strip,
/* private fields */
}
Expand description
A type representing the %{ endif }
sub-expression within an IfDirective
.
Fields§
§strip: Strip
The whitespace strip behaviour to use on the template elements preceeding and following
after the endif
marker.
Implementations§
Source§impl EndifTemplateExpr
impl EndifTemplateExpr
Sourcepub fn new() -> EndifTemplateExpr
pub fn new() -> EndifTemplateExpr
Creates a new EndifTemplateExpr
.
Sourcepub fn preamble(&self) -> &RawString
pub fn preamble(&self) -> &RawString
Return a reference to the raw leading decor after the endif
’s opening {
.
Sourcepub fn set_preamble(&mut self, preamble: impl Into<RawString>)
pub fn set_preamble(&mut self, preamble: impl Into<RawString>)
Set the raw leading decor after the endif
’s opening {
.
Sourcepub fn trailing(&self) -> &RawString
pub fn trailing(&self) -> &RawString
Return a reference to the raw trailing decor before the endif
’s closing }
.
Sourcepub fn set_trailing(&mut self, trailing: impl Into<RawString>)
pub fn set_trailing(&mut self, trailing: impl Into<RawString>)
Set the raw trailing decor before the endif
’s closing }
.
Trait Implementations§
Source§impl Clone for EndifTemplateExpr
impl Clone for EndifTemplateExpr
Source§fn clone(&self) -> EndifTemplateExpr
fn clone(&self) -> EndifTemplateExpr
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 EndifTemplateExpr
impl Debug for EndifTemplateExpr
Source§impl Default for EndifTemplateExpr
impl Default for EndifTemplateExpr
Source§fn default() -> EndifTemplateExpr
fn default() -> EndifTemplateExpr
Returns the “default value” for a type. Read more
Source§impl PartialEq for EndifTemplateExpr
impl PartialEq for EndifTemplateExpr
impl Eq for EndifTemplateExpr
impl StructuralPartialEq for EndifTemplateExpr
Auto Trait Implementations§
impl Freeze for EndifTemplateExpr
impl RefUnwindSafe for EndifTemplateExpr
impl Send for EndifTemplateExpr
impl Sync for EndifTemplateExpr
impl Unpin for EndifTemplateExpr
impl UnwindSafe for EndifTemplateExpr
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