Trait ValidateInto

Source
pub trait ValidateInto<T> {
    type Error;
    type Trace;

    // Required method
    fn validate_into(self) -> Valid<T, Self::Error, Self::Trace>;
}
Expand description

Moral equivalent of TryInto for validation purposes

Required Associated Types§

Required Methods§

Source

fn validate_into(self) -> Valid<T, Self::Error, Self::Trace>

Implementors§

Source§

impl<S, T: ValidateFrom<S>> ValidateInto<T> for S

A blanket implementation for ValidateInto

Source§

type Error = <T as ValidateFrom<S>>::Error

Source§

type Trace = <T as ValidateFrom<S>>::Trace