Trait SchemaGetter

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

Required Methods§

Source

fn schema(encoding: &Encoding, phantom: PhantomData<Value>) -> &Encoding::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
where Encoding: HasSchemaType, Component: DelegateComponent<SchemaGetterComponent>, Component::Delegate: SchemaGetter<Encoding, Value>,

Source§

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