Track

Trait Track 

Source
pub trait Track<T, E>: Sealed {
    // Required methods
    fn t(self) -> Result<T, StringError>;
    fn t_named(self, name: &str) -> Result<T, StringError>;
}
Expand description

Provides the t (“track”) method for bool, Option, and Result.

Required Methods§

Source

fn t(self) -> Result<T, StringError>

Source

fn t_named(self, name: &str) -> Result<T, StringError>

Implementations on Foreign Types§

Source§

impl Track<bool, Infallible> for bool

Source§

impl<T> Track<T, Infallible> for Option<T>

Source§

fn t(self) -> Result<T, StringError>

Source§

fn t_named(self, name: &str) -> Result<T, StringError>

Source§

impl<T, E> Track<T, E> for Result<T, E>
where E: ToString,

Source§

fn t(self) -> Result<T, StringError>

Source§

fn t_named(self, name: &str) -> Result<T, StringError>

Implementors§