pub trait Validator: Default {
    // Required methods
    fn with_env(target_env: TargetEnv) -> Self;
    fn validate(
        &self,
        binary: impl AsRef<[u32]>,
        options: Option<ValidatorOptions>
    ) -> Result<(), Error>;
}

Required Methods§

source

fn with_env(target_env: TargetEnv) -> Self

source

fn validate( &self, binary: impl AsRef<[u32]>, options: Option<ValidatorOptions> ) -> Result<(), Error>

Implementors§