XRay

Trait XRay 

Source
pub trait XRay {
    type Item;

    // Required method
    fn xray<F: FnOnce(&Self::Item)>(self, f: F) -> Self;
}
Expand description

A placeholder trait intended for depreciation once result_option_inspect becomes stable

Required Associated Types§

Required Methods§

Source

fn xray<F: FnOnce(&Self::Item)>(self, f: F) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> XRay for Option<T>

Source§

type Item = T

Source§

fn xray<F: FnOnce(&T)>(self, f: F) -> Self

Source§

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

Source§

type Item = T

Source§

fn xray<F: FnOnce(&Self::Item)>(self, f: F) -> Self

Implementors§