pub trait IntoRustia {
// Required method
fn into_rustia(self) -> Result<OwnedValue>;
}Expand description
Converts a Rust value to an owned script value.
Implementations include numbers, strings, Option<T>, Vec<T>, and
BTreeMap<String, T>. None becomes nil; vectors become one-based Luau
sequences. Integer conversions reject values that cannot be represented
exactly as a Luau number.
Required Methods§
Sourcefn into_rustia(self) -> Result<OwnedValue>
fn into_rustia(self) -> Result<OwnedValue>
Converts this value, returning an error if it cannot be represented.