Struct liquid_core::runtime::InterruptRegister
source · pub struct InterruptRegister { /* private fields */ }Expand description
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.
Implementations§
Trait Implementations§
source§impl Clone for InterruptRegister
impl Clone for InterruptRegister
source§fn clone(&self) -> InterruptRegister
fn clone(&self) -> InterruptRegister
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 InterruptRegister
impl Debug for InterruptRegister
source§impl Default for InterruptRegister
impl Default for InterruptRegister
source§fn default() -> InterruptRegister
fn default() -> InterruptRegister
Returns the “default value” for a type. Read more
source§impl PartialEq for InterruptRegister
impl PartialEq for InterruptRegister
source§fn eq(&self, other: &InterruptRegister) -> bool
fn eq(&self, other: &InterruptRegister) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for InterruptRegister
impl StructuralPartialEq for InterruptRegister
Auto Trait Implementations§
impl Freeze for InterruptRegister
impl RefUnwindSafe for InterruptRegister
impl Send for InterruptRegister
impl Sync for InterruptRegister
impl Unpin for InterruptRegister
impl UnwindSafe for InterruptRegister
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more