pub trait FromRustiaMulti: Sized {
// Required method
fn from_rustia_multi(values: Vec<OwnedValue>) -> Result<Self>;
}Expand description
Converts a script’s return values to a Rust value or tuple.
A single type reads the first result; tuples through eight elements read
successive results. Missing results are treated as nil, extra results are
ignored, and () discards all results. Each selected result still has to
satisfy its FromRustia conversion.
Owned execution methods copy every result into OwnedValue before calling
this trait, including results that will be discarded. Use live-value methods
when any result cannot be represented by OwnedValue.
Required Methods§
Sourcefn from_rustia_multi(values: Vec<OwnedValue>) -> Result<Self>
fn from_rustia_multi(values: Vec<OwnedValue>) -> Result<Self>
Converts the selected return values.
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.