pub trait Validate<T> {
    type Error;

    // Required method
    fn validate(candidate: &T) -> Result<(), Self::Error>;
}
Expand description

Validations on T that can be run during construction of a validated fidl table by adding the attribute #[fidl_table_validator(YourImpl)] to the valid struct.

Required Associated Types§

Required Methods§

source

fn validate(candidate: &T) -> Result<(), Self::Error>

Object Safety§

This trait is not object safe.

Implementors§