Trait ToResult
rbatis::utils::error_util
pub trait ToResult<T> { fn to_result<F>(&self, fail_method: F) -> Result<&T, Error> where F: Fn() -> String; }
fn to_result<F>(&self, fail_method: F) -> Result<&T, Error> where F: Fn() -> String,
impl<T> ToResult<T> for Option<&T>