Skip to main content

BoxSchema

Trait BoxSchema 

Source
pub trait BoxSchema:
    Schema
    + Sized
    + 'static {
    // Provided method
    fn boxed(self) -> Box<dyn Schema> { ... }
}

Provided Methods§

Source

fn boxed(self) -> Box<dyn Schema>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Schema + Sized + 'static> BoxSchema for T