pub trait Valid: Sized + Sync {
// Required method
fn check(&self) -> Result<(), SerializationError>;
// Provided method
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>
where Self: 'a { ... }
}
Required Methods§
fn check(&self) -> Result<(), SerializationError>
Provided Methods§
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
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.