pub trait TryIntoIfSome<T> {
    fn try_into_if_some<S: ToString>(
        field: S
    ) -> Result<T, TryFromProtoError>; }
Expand description

Convenience syntax for trying to convert a Self value of type Option<U> to T if the value is Some(value), or returning TryFromProtoError::MissingField if the value is None.

Required Methods§

Implementations on Foreign Types§

A blanket implementation for Option<U> where U is the Proto$T type for T.