ZeroCopyArray

Trait ZeroCopyArray 

Source
pub trait ZeroCopyArray: ArrayProtocol {
    // Required methods
    fn view(&self) -> Box<dyn ZeroCopyArray>;
    fn view_mut(&mut self) -> Box<dyn ZeroCopyArray>;
    fn is_view(&self) -> bool;
}
Expand description

Trait for arrays that support zero-copy operations.

Required Methods§

Source

fn view(&self) -> Box<dyn ZeroCopyArray>

Create a view of this array.

Source

fn view_mut(&mut self) -> Box<dyn ZeroCopyArray>

Create a mutable view of this array.

Source

fn is_view(&self) -> bool

Check if this array is a view.

Implementors§