pub struct LoopVariant {
pub expr: Expr,
pub cfg: Option<Meta>,
}Expand description
Decreases with each run of a loop’s body.
Fields§
§expr: ExprThe expression that defines the variant.
cfg: Option<Meta>Static analyzers can safely ignore this field.
Build configuration filter to decide whether to add runtime checks.
Passed to a cfg!() guard in the instrumented code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopVariant
impl RefUnwindSafe for LoopVariant
impl !Send for LoopVariant
impl !Sync for LoopVariant
impl Unpin for LoopVariant
impl UnsafeUnpin for LoopVariant
impl UnwindSafe for LoopVariant
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