pub trait Serializable: 'static {
// Required methods
fn ident() -> TypeIdent;
fn ty() -> Type;
// Provided methods
fn is_primitive() -> bool { ... }
fn collect_types(types: &mut TypeMap) { ... }
}Required Methods§
Provided Methods§
Sourcefn is_primitive() -> bool
fn is_primitive() -> bool
Whether this type is a primitive.
Sourcefn collect_types(types: &mut TypeMap)
fn collect_types(types: &mut TypeMap)
Collects the Type of this type and its dependencies.
The default implementation is only suitable for types without dependencies.
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.