Trait IntoParselyResult

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

When we need to convert an expression that may or may not be wrapped in a Result on the read path, we can rely on the fact that we’ll eventually be assigning the value to a field with a concrete type and we can rely on type inference in order to figure out what that should be. Because of that we don’t want/need the ParselyWrite trait bounds on the impl like we have above for the writable side, so we need a different trait here.

Required Methods§

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl<T> IntoParselyResult<T> for T