Trait Validator

Source
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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§