pub trait Validate {
// Required method
fn validate_at(&self, path: &str, ctx: &Context<'_>, out: &mut Report);
// Provided method
fn validate(&self, ctx: &Context<'_>) -> Report { ... }
}Expand description
Something that can be checked against the standard’s semantics.
Required Methods§
Sourcefn validate_at(&self, path: &str, ctx: &Context<'_>, out: &mut Report)
fn validate_at(&self, path: &str, ctx: &Context<'_>, out: &mut Report)
Check, recording everything wrong at path and below.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".