SliceSpace

Trait SliceSpace 

Source
pub trait SliceSpace: RawSpace {
    // Required method
    fn as_slice(&self) -> &[Self::Elem];

    // Provided methods
    fn as_ptr(&self) -> *const Self::Elem { ... }
    fn len(&self) -> usize { ... }
}
Expand description

SliceSpace is used to define sequential collections, spaces, or containers that can be viewed as slices.

Required Methods§

Source

fn as_slice(&self) -> &[Self::Elem]

Provided Methods§

Source

fn as_ptr(&self) -> *const Self::Elem

returns a raw pointer to the underlying elements

Source

fn len(&self) -> usize

Implementors§