pub trait FromKclValue<'a>: Sized {
// Required method
fn from_kcl_val(arg: &'a KclValue) -> Option<Self>;
}
Expand description
Types which impl this trait can be extracted from a KclValue
.
Required Methods§
Sourcefn from_kcl_val(arg: &'a KclValue) -> Option<Self>
fn from_kcl_val(arg: &'a KclValue) -> Option<Self>
Try to convert a KclValue into this type.
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.