pub(crate) trait UnwrapValidatedExt<T> {
// Required method
fn unwrap_validated(self) -> T;
}
Required Methods§
fn unwrap_validated(self) -> T
Implementations on Foreign Types§
Source§impl<T> UnwrapValidatedExt<T> for Option<T>
impl<T> UnwrapValidatedExt<T> for Option<T>
Source§fn unwrap_validated(self) -> T
fn unwrap_validated(self) -> T
Indicate that we can assume this Option to be Some(_) due to prior validation
Source§impl<T, E: Debug> UnwrapValidatedExt<T> for Result<T, E>
impl<T, E: Debug> UnwrapValidatedExt<T> for Result<T, E>
Source§fn unwrap_validated(self) -> T
fn unwrap_validated(self) -> T
Indicate that we can assume this Result to be Ok(_) due to prior validation