pub struct DensityConstraint {
pub min: f64,
pub max: f64,
}Expand description
Adapter for density validation
Fields§
§min: f64§max: f64Implementations§
Trait Implementations§
Source§impl Constraint for DensityConstraint
impl Constraint for DensityConstraint
fn id(&self) -> &'static str
fn kind(&self) -> ConstraintKind
fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintResult
Auto Trait Implementations§
impl Freeze for DensityConstraint
impl RefUnwindSafe for DensityConstraint
impl Send for DensityConstraint
impl Sync for DensityConstraint
impl Unpin for DensityConstraint
impl UnwindSafe for DensityConstraint
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