[][src]Trait frunk::validated::IntoValidated

pub trait IntoValidated<T, E> {
    fn into_validated(self) -> Validated<HCons<T, HNil>, E>;

Trait for "lifting" a given type into a Validated

Required Methods

Consumes the current Result into a Validated so that we can begin chaining


use frunk::prelude::*; // IntoValidated is in the prelude

let r1: Result<String, i32> = Result::Err(32);
let v = r1.into_validated();

Implementations on Foreign Types

impl<T, E> IntoValidated<T, E> for Result<T, E>