Struct liquid_interpreter::IfChangedState [−][src]
pub struct IfChangedState { /* fields omitted */ }Remembers the content of the last rendered ifstate block.
Methods
impl IfChangedState[src]
impl IfChangedStatepub fn has_changed(&mut self, rendered: &str) -> bool[src]
pub fn has_changed(&mut self, rendered: &str) -> boolChecks whether or not a new rendered &str is different from
last_rendered and updates last_rendered value to the new value.
Trait Implementations
impl Debug for IfChangedState[src]
impl Debug for IfChangedStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for IfChangedState[src]
impl Clone for IfChangedStatefn clone(&self) -> IfChangedState[src]
fn clone(&self) -> IfChangedStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for IfChangedState[src]
impl PartialEq for IfChangedStatefn eq(&self, other: &IfChangedState) -> bool[src]
fn eq(&self, other: &IfChangedState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &IfChangedState) -> bool[src]
fn ne(&self, other: &IfChangedState) -> boolThis method tests for !=.
impl Eq for IfChangedState[src]
impl Eq for IfChangedStateimpl Default for IfChangedState[src]
impl Default for IfChangedStatefn default() -> IfChangedState[src]
fn default() -> IfChangedStateReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for IfChangedState
impl Send for IfChangedStateimpl Sync for IfChangedState
impl Sync for IfChangedState