pub enum CheckLabelsError {
DuplicateLabel(Sym),
UndefinedBreakTarget(Sym),
UndefinedContinueTarget(Sym),
IllegalBreakStatement,
IllegalContinueStatement,
}Expand description
Errors that can occur when checking labels.
Variants§
DuplicateLabel(Sym)
A label was used multiple times.
UndefinedBreakTarget(Sym)
A break statement was used with a label that was not defined.
UndefinedContinueTarget(Sym)
A continue statement was used with a label that was not defined.
IllegalBreakStatement
A break statement was used in a non-looping context.
IllegalContinueStatement
A continue statement was used in a non-looping context.
Implementations§
Trait Implementations§
Source§impl Clone for CheckLabelsError
impl Clone for CheckLabelsError
Source§fn clone(&self) -> CheckLabelsError
fn clone(&self) -> CheckLabelsError
Returns a duplicate 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 CheckLabelsError
impl Debug for CheckLabelsError
impl Copy for CheckLabelsError
Auto Trait Implementations§
impl Freeze for CheckLabelsError
impl RefUnwindSafe for CheckLabelsError
impl Send for CheckLabelsError
impl Sync for CheckLabelsError
impl Unpin for CheckLabelsError
impl UnwindSafe for CheckLabelsError
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