pub struct Break {
pub value: Option<Box<Expr>>,
pub span: Range<usize>,
pub break_span: Range<usize>,
}Expand description
A break expression, used to exit a loop, optionally with a value.
Fields§
§value: Option<Box<Expr>>The value to return from the loop.
span: Range<usize>The region of the source code that this expression was parsed from.
break_span: Range<usize>The span of the break keyword.
Implementations§
Trait Implementations§
Source§impl Latex for Break
impl Latex for Break
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 Break
impl<'source> Parse<'source> for Break
impl Eq for Break
impl StructuralPartialEq for Break
Auto Trait Implementations§
impl Freeze for Break
impl RefUnwindSafe for Break
impl Send for Break
impl Sync for Break
impl Unpin for Break
impl UnwindSafe for Break
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