pub struct Loop {
pub body: Box<Expr>,
pub span: Range<usize>,
pub loop_span: Range<usize>,
}Expand description
A loop expression, as in loop { ... }. The code inside the braces is
evaluated repeatedly until a break expression is encountered.
Fields§
§body: Box<Expr>The body of the loop.
span: Range<usize>The region of the source code that this expression was parsed from.
loop_span: Range<usize>The span of the loop keyword.
Implementations§
Trait Implementations§
Source§impl Latex for Loop
impl Latex for Loop
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Loop
impl<'source> Parse<'source> for Loop
impl Eq for Loop
impl StructuralPartialEq for Loop
Auto Trait Implementations§
impl Freeze for Loop
impl RefUnwindSafe for Loop
impl Send for Loop
impl Sync for Loop
impl Unpin for Loop
impl UnwindSafe for Loop
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