pub trait SlFrom<T>: Sizedwhere
Self: BridgedType,{
// Required method
fn sl_from(value: T, vm: &mut SloshVm) -> VMResult<Self>;
}
Expand description
Use mutable SloshVm
to take a rust value and convert it to a BridgedType
.
Required Methods§
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.