pub trait UnwrapOrInvalid {
type Output;
// Required method
fn unwrap_or_invalid(self) -> Self::Output;
}
Expand description
Unwrap a conversion by replacing a failure with an invalid sentinel value.
Required Associated Types§
Required Methods§
Sourcefn unwrap_or_invalid(self) -> Self::Output
fn unwrap_or_invalid(self) -> Self::Output
Either unwraps the successfully converted value, or returns the output type’s invalid sentinel value.