Trait bones_asset::FromType

pub trait FromType<T> {
    // Required method
    fn from_type() -> Self;
}
Expand description

Trait implemented for types that can produce an instance of themselves from a Rust type.

This is useful for type datas, which may be derived for a type if the type data implements FromType for type that is deriving it.

Required Methods§

fn from_type() -> Self

Return the data for the type.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> FromType<T> for SchemaDeserializewhere T: HasSchema + for<'de> Deserialize<'de>,