pub struct Interpolation {
pub expr: Expression,
pub strip: Strip,
/* private fields */
}
Expand description
An interpolation sequence evaluates an expression (written in the expression sub-language), converts the result to a string value, and replaces itself with the resulting string.
Fields§
§expr: Expression
The interpolated expression.
strip: Strip
The whitespace strip behaviour to use on the template elements preceeding and following after this interpolation sequence.
Implementations§
Source§impl Interpolation
impl Interpolation
Sourcepub fn new(expr: impl Into<Expression>) -> Interpolation
pub fn new(expr: impl Into<Expression>) -> Interpolation
Creates a new Interpolation
from an expression.
Trait Implementations§
Source§impl Clone for Interpolation
impl Clone for Interpolation
Source§fn clone(&self) -> Interpolation
fn clone(&self) -> Interpolation
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 Interpolation
impl Debug for Interpolation
Source§impl From<Interpolation> for Element
impl From<Interpolation> for Element
Source§fn from(value: Interpolation) -> Self
fn from(value: Interpolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Interpolation
impl PartialEq for Interpolation
Source§impl Span for Interpolation
impl Span for Interpolation
impl Eq for Interpolation
Auto Trait Implementations§
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnwindSafe for Interpolation
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