Trait IntoWritableParselyResult

Source
pub trait IntoWritableParselyResult<T> {
    // Required method
    fn into_parsely_result(self) -> ParselyResult<T>;
}
Expand description

Helper trait to coerce values of both T: ParselyWrite and Result<T, E>: E: Into<anyhow::Error> into ParselyResult<T>. We need a trait specifically for writing because if we don’t bound the impl for T in some way there’s ambiguity: the compiler doesn’t know if we want ParselyResult<T> or ParselyResult<Result<T, E>>.

Required Methods§

Implementations on Foreign Types§

Source§

impl<T, E> IntoWritableParselyResult<T> for Result<T, E>
where E: Into<Error>,

Implementors§