pub trait Keyword:
Send
+ Sync
+ Any {
// Required method
fn compile(&self, def: &Value, ctx: &WalkContext<'_>) -> KeywordResult;
// Provided methods
fn is_exclusive(&self, _version: SchemaVersion) -> bool { ... }
fn place_first(&self) -> bool { ... }
fn place_last(&self) -> bool { ... }
}Required Methods§
fn compile(&self, def: &Value, ctx: &WalkContext<'_>) -> KeywordResult
Provided Methods§
fn is_exclusive(&self, _version: SchemaVersion) -> bool
fn place_first(&self) -> bool
fn place_last(&self) -> bool
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".