pub trait FromRustia: Sized {
// Required method
fn from_rustia(value: OwnedValue) -> Result<Self>;
}Expand description
Converts an owned script value to a Rust value.
Conversions check the requested type rather than applying Luau coercions.
Option<T> accepts nil as None; integer types require a finite, whole
number in range. Vec<T> requires a sequence without keyed entries, while
BTreeMap<String, T> requires string keys without sequence entries.
Required Methods§
Sourcefn from_rustia(value: OwnedValue) -> Result<Self>
fn from_rustia(value: OwnedValue) -> Result<Self>
Converts a value, returning an error for an incompatible type or range.
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.