Trait signal_processing::util::ResultOrOk

source ·
pub trait ResultOrOk<T, E>
where T: ?Sized, E: ?Sized,
{ // Required methods fn into_result(self) -> Result<T, E> where Self: Sized, T: Sized, E: Sized; fn as_result(&self) -> Result<&T, &E>; fn as_result_mut(&mut self) -> Result<&mut T, &mut E>; }

Required Methods§

source

fn into_result(self) -> Result<T, E>
where Self: Sized, T: Sized, E: Sized,

source

fn as_result(&self) -> Result<&T, &E>

source

fn as_result_mut(&mut self) -> Result<&mut T, &mut E>

Implementations on Foreign Types§

source§

impl<T, E> ResultOrOk<T, E> for Result<T, E>

source§

fn into_result(self) -> Result<T, E>
where Self: Sized, T: Sized, E: Sized,

source§

fn as_result(&self) -> Result<&T, &E>

source§

fn as_result_mut(&mut self) -> Result<&mut T, &mut E>

Implementors§

source§

impl<T, E> ResultOrOk<T, E> for T