Trait Array

Source
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§

Source

fn to_array(&self) -> T

Convert the object to array

Source

fn set_array(&mut self, arr: &T) -> &mut Self

Set the object from array

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.

Implementors§

Source§

impl Array<[f64; 2]> for Vector2

Source§

impl Array<[f64; 3]> for Vector3

Source§

impl Array<[f64; 4]> for Vector4

Source§

impl Array<[f64; 4]> for Point2

Source§

impl Array<[f64; 6]> for Vector6

Source§

impl Array<[f64; 6]> for Point3