Trait signal_processing::MaybeList

source ·
pub trait MaybeList<T>: MaybeLists<T> {
    // Required methods
    fn as_view_slice_option(&self) -> Option<&[T]>;
    fn to_vec_option(&self) -> Option<Vec<T>>
       where T: Clone;
    fn into_vec_option(self) -> Option<Vec<T>>
       where T: Clone,
             Self: Sized;
}

Required Methods§

source

fn as_view_slice_option(&self) -> Option<&[T]>

source

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T> MaybeList<T> for &'a [T]

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<'a, T> MaybeList<T> for ArrayView1<'a, T>

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<'a, T, const N: usize> MaybeList<T> for &'a [T; N]

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<T> MaybeList<T> for [T]

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<T> MaybeList<T> for ()

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<T> MaybeList<T> for Vec<T>

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<T> MaybeList<T> for Array1<T>

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

source§

impl<T, const N: usize> MaybeList<T> for [T; N]

source§

fn as_view_slice_option(&self) -> Option<&[T]>

source§

fn to_vec_option(&self) -> Option<Vec<T>>
where T: Clone,

source§

fn into_vec_option(self) -> Option<Vec<T>>
where T: Clone, Self: Sized,

Implementors§