Skip to main content

Validate

Trait Validate 

Source
pub trait Validate<'a>: Sized {
    // Required method
    fn validate<R: BufferReader<'a>>(
        reader: &mut R,
    ) -> Result<(), ValidateError>;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl<'a> Validate<'a> for String

Available on crate feature alloc only.
Source§

impl<'a, T: Validate<'a>> Validate<'a> for Vec<T>

Available on crate feature alloc only.

Implementors§

Source§

impl<'a, T: View<'a>> Validate<'a> for T