Trait geo_aid::script::unroll::ConvertFrom
source · pub trait ConvertFrom<T>: Displayed {
// Required methods
fn convert_from(value: T, context: &CompileContext) -> Expr<Self>;
fn can_convert_from(value: &T) -> bool;
}
Required Methods§
sourcefn convert_from(value: T, context: &CompileContext) -> Expr<Self>
fn convert_from(value: T, context: &CompileContext) -> Expr<Self>
Errors
Returns an error if the conversion is invalid.
fn can_convert_from(value: &T) -> bool
Object Safety§
This trait is not object safe.