Struct liquid_interpreter::IfChangedState
source · pub struct IfChangedState { /* private fields */ }
Expand description
Remembers the content of the last rendered ifstate
block.
Implementations§
source§impl IfChangedState
impl IfChangedState
sourcepub fn has_changed(&mut self, rendered: &str) -> bool
pub fn has_changed(&mut self, rendered: &str) -> bool
Checks whether or not a new rendered &str
is different from
last_rendered
and updates last_rendered
value to the new value.
Trait Implementations§
source§impl Clone for IfChangedState
impl Clone for IfChangedState
source§fn clone(&self) -> IfChangedState
fn clone(&self) -> IfChangedState
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 IfChangedState
impl Debug for IfChangedState
source§impl Default for IfChangedState
impl Default for IfChangedState
source§fn default() -> IfChangedState
fn default() -> IfChangedState
Returns the “default value” for a type. Read more