Trait stry_common::utils::PeepResult [−][src]
Required methods
fn peek_ok<F, R>(self, run: F) -> Self where
F: FnOnce(&T) -> R,
R: Sized,
[src]
F: FnOnce(&T) -> R,
R: Sized,
fn peek_ok_mut<F, R>(self, run: F) -> Self where
F: FnOnce(&mut T) -> R,
R: Sized,
[src]
F: FnOnce(&mut T) -> R,
R: Sized,
fn peek_err<F, R>(self, run: F) -> Self where
F: FnOnce(&E) -> R,
R: Sized,
[src]
F: FnOnce(&E) -> R,
R: Sized,
fn peek_err_mut<F, R>(self, run: F) -> Self where
F: FnOnce(&mut E) -> R,
R: Sized,
[src]
F: FnOnce(&mut E) -> R,
R: Sized,
Provided methods
fn peek_ok_dbg<F, R>(self, run: F) -> Self where
F: FnOnce(&T) -> R,
R: Sized,
[src]
F: FnOnce(&T) -> R,
R: Sized,
fn peek_ok_mut_dbg<F, R>(self, run: F) -> Self where
F: FnOnce(&mut T) -> R,
R: Sized,
[src]
F: FnOnce(&mut T) -> R,
R: Sized,
fn peek_err_dbg<F, R>(self, run: F) -> Self where
F: FnOnce(&E) -> R,
R: Sized,
[src]
F: FnOnce(&E) -> R,
R: Sized,
fn peek_err_mut_dbg<F, R>(self, run: F) -> Self where
F: FnOnce(&mut E) -> R,
R: Sized,
[src]
F: FnOnce(&mut E) -> R,
R: Sized,
Implementations on Foreign Types
impl<T: Sized, E: Sized> PeepResult<T, E> for Result<T, E>
[src]
fn peek_ok<F, R>(self, run: F) -> Self where
F: FnOnce(&T) -> R,
R: Sized,
[src]
F: FnOnce(&T) -> R,
R: Sized,
fn peek_ok_mut<F, R>(self, run: F) -> Self where
F: FnOnce(&mut T) -> R,
R: Sized,
[src]
F: FnOnce(&mut T) -> R,
R: Sized,
fn peek_err<F, R>(self, run: F) -> Self where
F: FnOnce(&E) -> R,
R: Sized,
[src]
F: FnOnce(&E) -> R,
R: Sized,
fn peek_err_mut<F, R>(self, run: F) -> Self where
F: FnOnce(&mut E) -> R,
R: Sized,
[src]
F: FnOnce(&mut E) -> R,
R: Sized,