Schema

Trait Schema 

Source
pub trait Schema {
    type TypeId: TypeId;
    type Error: Error;

    // Required method
    fn register_type(
        &mut self,
        ty: Type<Self::TypeId>,
    ) -> Result<Self::TypeId, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn register_type( &mut self, ty: Type<Self::TypeId>, ) -> Result<Self::TypeId, Self::Error>

Implementations on Foreign Types§

Source§

impl<'a, T: Schema> Schema for &'a mut T

Source§

type TypeId = <T as Schema>::TypeId

Source§

type Error = <T as Schema>::Error

Source§

fn register_type( &mut self, ty: Type<Self::TypeId>, ) -> Result<Self::TypeId, Self::Error>

Source§

impl<T: Schema> Schema for Box<T>

Source§

type TypeId = <T as Schema>::TypeId

Source§

type Error = <T as Schema>::Error

Source§

fn register_type( &mut self, ty: Type<Self::TypeId>, ) -> Result<Self::TypeId, Self::Error>

Implementors§