Trait ArrayInterface

Source
pub(crate) trait ArrayInterface<Element>: Copy {
    // Required methods
    fn get_const(&self, data: &mut *const Element, size: &mut CapeSize);
    fn get(&mut self, data: &mut *mut Element, size: &mut CapeSize);
    fn set(&mut self, data: &mut *mut Element, size: CapeSize) -> CapeResult;
}
Expand description

Trait for common array functionality of any CapeArrayOut wrapper

Required Methods§

Source

fn get_const(&self, data: &mut *const Element, size: &mut CapeSize)

Source

fn get(&mut self, data: &mut *mut Element, size: &mut CapeSize)

Source

fn set(&mut self, data: &mut *mut Element, size: CapeSize) -> CapeResult

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§