pub fn with<V>(self, validator: V) -> Self where
        V: Validator<I> + 'static
    {
        let constraint = Params::new(validator);
        self.method.store.get_mut::<I, O>(self.id).constrain(constraint);
        self
    }
/// Specify a `Validator` object that will validate parameters when called.
///
/// If it returns `false` when its `validate()` method is called, the
/// expectation will be invalidated.
Specify a `Validator` object that will validate parameters when called.
If it returns `false` when its `validate()` method is called, the
expectation will be invalidated.
Specify a ` Validator ` object that will validate parameters when called . If it returns ` false ` when its ` validate () ` method is called the expectation will be invalidated .
pub fn with<V>(self, validator: V) -> Self where
        V: Validator<I> + 'static
    {
        let constraint = Params::new(validator);
        self.method.store.get_mut::<I, O>(self.id).constrain(constraint);
        self
    }
pub fn with < V > ( self , validator : V ) -> Self where V : Validator < I > + ' static { let constraint = Params :: new ( validator ) ; self . method . store . get_mut :: < I , O > ( self . id ) . constrain ( constraint ) ; self }
Specify a `Validator` object that will validate parameters when called.
Specify a ` Validator ` object that will validate parameters when called .
self
validator
V
self
validator
V