pub enum RegionKind {
Block,
Loop,
}Expand description
Which way a Region’s label is entered.
Variants§
Block
The label stands after the region: a goto to it is break 'l, and
the statements the label introduces follow the block.
Loop
The label stands at the start of the region: a goto to it is
continue 'l, and control leaves by falling off the end.
Trait Implementations§
Source§impl Clone for RegionKind
impl Clone for RegionKind
impl Copy for RegionKind
Source§impl Debug for RegionKind
impl Debug for RegionKind
impl Eq for RegionKind
Source§impl PartialEq for RegionKind
impl PartialEq for RegionKind
impl StructuralPartialEq for RegionKind
Auto Trait Implementations§
impl Freeze for RegionKind
impl RefUnwindSafe for RegionKind
impl Send for RegionKind
impl Sync for RegionKind
impl Unpin for RegionKind
impl UnsafeUnpin for RegionKind
impl UnwindSafe for RegionKind
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