Struct liquid_interpreter::InterruptState [−][src]
pub struct InterruptState { /* fields omitted */ }The current interrupt state. The interrupt state is used by
the break and continue tags to halt template rendering
at a given point and unwind the render call stack until
it reaches an enclosing for_loop. At that point the interrupt
is cleared, and the for_loop carries on processing as directed.
Methods
impl InterruptState[src]
impl InterruptStatepub fn interrupted(&self) -> bool[src]
pub fn interrupted(&self) -> boolAn interrupt state is active.
pub fn set_interrupt(&mut self, interrupt: Interrupt)[src]
pub fn set_interrupt(&mut self, interrupt: Interrupt)Sets the interrupt state. Any previous state is obliterated.
pub fn pop_interrupt(&mut self) -> Option<Interrupt>[src]
pub fn pop_interrupt(&mut self) -> Option<Interrupt>Fetches and clears the interrupt state.
Trait Implementations
impl Debug for InterruptState[src]
impl Debug for InterruptStatefn 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 InterruptState[src]
impl Clone for InterruptStatefn clone(&self) -> InterruptState[src]
fn clone(&self) -> InterruptStateReturns 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 InterruptState[src]
impl PartialEq for InterruptStatefn eq(&self, other: &InterruptState) -> bool[src]
fn eq(&self, other: &InterruptState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &InterruptState) -> bool[src]
fn ne(&self, other: &InterruptState) -> boolThis method tests for !=.
impl Eq for InterruptState[src]
impl Eq for InterruptStateimpl Default for InterruptState[src]
impl Default for InterruptStatefn default() -> InterruptState[src]
fn default() -> InterruptStateReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for InterruptState
impl Send for InterruptStateimpl Sync for InterruptState
impl Sync for InterruptState