pub enum Block<'a, 'b> {
Source(&'b str),
Expression(&'a Expression<'b>),
Assignment(&'b str, TokenType, &'a Expression<'b>),
If(Box<IfBlock<'a, 'b>>),
For(Box<ForBlock<'a, 'b>>),
}Expand description
A block that is produced by super::evaluator::EvaluatorBuilder and can be evaluated using a super::evaluation_context::EvaluationContext.
Variants§
Source(&'b str)
Expression(&'a Expression<'b>)
Assignment(&'b str, TokenType, &'a Expression<'b>)
If(Box<IfBlock<'a, 'b>>)
For(Box<ForBlock<'a, 'b>>)
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for Block<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Block<'a, 'b>
impl<'a, 'b> Send for Block<'a, 'b>
impl<'a, 'b> Sync for Block<'a, 'b>
impl<'a, 'b> Unpin for Block<'a, 'b>
impl<'a, 'b> UnwindSafe for Block<'a, 'b>
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