pub struct ConditionClosure {
pub closure: ExprClosure,
pub cfg: Option<Meta>,
}
Expand description
A condition represented by a bool
-valued closure.
Fields§
§closure: ExprClosure
The closure.
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 function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConditionClosure
impl RefUnwindSafe for ConditionClosure
impl !Send for ConditionClosure
impl !Sync for ConditionClosure
impl Unpin for ConditionClosure
impl UnwindSafe for ConditionClosure
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