pub trait ValidityConditionChecker<Condition>: BorshDeserialize + BorshSerialize + Debugwhere
    Condition: ValidityCondition,{
    type Error: Into<Error>;

    // Required method
    fn check(&mut self, condition: &Condition) -> Result<(), Self::Error>;
}
Expand description

This trait expresses that a type can check a validity condition.

Required Associated Types§

source

type Error: Into<Error>

The error type returned when a ValidityCondition is invalid.

Required Methods§

source

fn check(&mut self, condition: &Condition) -> Result<(), Self::Error>

Check a validity condition

Implementors§