pub struct PreCondition {
pub closure: ExprClosure,
pub cfg: Option<Meta>,
}Expand description
A precondition represented by a bool-valued expression.
Fields§
§closure: ExprClosureThe closure that validates the precondition,
takes no input, e.g. || input.is_valid().
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 PreCondition
impl RefUnwindSafe for PreCondition
impl !Send for PreCondition
impl !Sync for PreCondition
impl Unpin for PreCondition
impl UnsafeUnpin for PreCondition
impl UnwindSafe for PreCondition
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