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