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

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

Loading content...

Implementations on Foreign Types

impl<T, '_> ToResult<T> for Option<&'_ T>[src]

Loading content...

Implementors

Loading content...