Trait basic_dsp_vector::ToSlice[][src]

pub trait ToSlice<T> {
    fn to_slice(&self) -> &[T];
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn alloc_len(&self) -> usize;
fn try_resize(&mut self, len: usize) -> VoidResult; }

A trait to convert a type into a slice.

Required Methods

Important traits for &'a [u8]

Convert to a slice.

Length of a slice.

Indicates whether or not this storage type is empty.

Gets the allocated length of a storage. It's expected that self.alloc_len() >= self.len() in all cases.

Resizes the storage to support at least len elements or returns an error if resizing isn't supported.

Implementations on Foreign Types

impl<'a, T> ToSlice<T> for &'a [T]
[src]

Important traits for &'a [u8]

impl<T> ToSlice<T> for [T]
[src]

Important traits for &'a [u8]

impl<'a, T> ToSlice<T> for &'a mut [T]
[src]

Important traits for &'a [u8]

impl<A: Array> ToSlice<A::Item> for ArrayVec<A> where
    A::Item: RealNumber
[src]

Important traits for &'a [u8]

impl<T> ToSlice<T> for Vec<T> where
    T: RealNumber
[src]

Important traits for &'a [u8]

impl<T> ToSlice<T> for Box<[T]>
[src]

Important traits for &'a [u8]

Implementors