pub trait FromSchematicInput<T> {
// Required method
fn from_input(input: T, context: &mut SchematicContext<'_, '_>) -> Self;
}
Expand description
A custom From
-like trait used to convert the input of a schematic
to itself.
This is used by derive macro to automatically handle the conversion.
This trait is has a blanket implementation for any type where the input
type satisfies Into
for the schematic type.
Required Methods§
fn from_input(input: T, context: &mut SchematicContext<'_, '_>) -> Self
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.