Trait SchemaGetter

Source
pub trait SchemaGetter<Encoding, Value>
where Encoding: HasSchemaType,
{ // Required method fn schema( encoding: &Encoding, phantom: PhantomData<Value>, ) -> &<Encoding as HasSchemaType>::Schema; }

Required Methods§

Source

fn schema( encoding: &Encoding, phantom: PhantomData<Value>, ) -> &<Encoding as HasSchemaType>::Schema

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.

Implementors§

Source§

impl<Component, Encoding, Value> SchemaGetter<Encoding, Value> for Component

Source§

impl<Encoding, Value, Components, Delegate> SchemaGetter<Encoding, Value> for DelegateEncoding<Components>
where Encoding: HasSchemaType, Components: DelegateComponent<Value, Delegate = Delegate>, Delegate: SchemaGetter<Encoding, Value>,