Trait substrate::scir::schema::FromSchema
source · pub trait FromSchema<S>: Schema{
type Error;
// Required methods
fn convert_primitive(
primitive: <S as Schema>::Primitive
) -> Result<Self::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.