pub trait Array<T> {
// Required methods
fn to_array(&self) -> T;
fn set_array(&mut self, arr: &T) -> &mut Self;
}
Expand description
Set an object from an array and convert an object onto an array
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.