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§
Sourcefn view(&self) -> Box<dyn ZeroCopyArray>
fn view(&self) -> Box<dyn ZeroCopyArray>
Create a view of this array.
Sourcefn view_mut(&mut self) -> Box<dyn ZeroCopyArray>
fn view_mut(&mut self) -> Box<dyn ZeroCopyArray>
Create a mutable view of this array.