Trait rbatis::utils::error_util::ToResult[][src]

pub trait ToResult<T> {
    fn to_result<F>(&self, fail_method: F) -> Result<&T, Error>
    where
        F: Fn() -> String
; }

Required methods

fn to_result<F>(&self, fail_method: F) -> Result<&T, Error> where
    F: Fn() -> String
[src]

Loading content...

Implementations on Foreign Types

impl<T> ToResult<T> for Option<&T>[src]

Loading content...

Implementors

Loading content...