Trait mz_sql::session::vars::constraints::DynDomainConstraint

source ·
pub trait DynDomainConstraint:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn check(&self, var: &dyn Var, v: &dyn Value) -> Result<(), VarError>;
}
Expand description

A type erased version of DomainConstraint that we can reference on a VarDefinition.

Required Methods§

source

fn check(&self, var: &dyn Var, v: &dyn Value) -> Result<(), VarError>

Implementors§

source§

impl<D> DynDomainConstraint for D
where D: DomainConstraint + Send + Sync + 'static, D::Value: Value,