Trait scir::schema::FromSchema
source · pub trait FromSchema<S: Schema + ?Sized>: Schema {
type Error;
// Required methods
fn convert_primitive(
primitive: <S as Schema>::Primitive
) -> Result<<Self as Schema>::Primitive, Self::Error>;
fn convert_instance(
instance: &mut Instance,
primitive: &<S as Schema>::Primitive
) -> Result<(), Self::Error>;
}
Expand description
A schema that can be converted from another schema.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.