tailcall_valid

Trait ValidateInto

source
pub trait ValidateInto<T> {
    type Error;

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

Moral equivalent of TryInto for validation purposes

Required Associated Types§

Required Methods§

source

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

Implementors§

source§

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

A blanket implementation for ValidateInto

source§

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