icu_provider_baked

Trait ResultDataError

pub trait ResultDataError<T>: Sized {
    // Required method
    fn allow_identifier_not_found(self) -> Result<Option<T>, DataError>;
}
Expand description

Extension trait for Result<T, DataError>.

Required Methods§

fn allow_identifier_not_found(self) -> Result<Option<T>, DataError>

Propagates all errors other than DataErrorKind::IdentifierNotFound, and returns None in that case.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<T> ResultDataError<T> for Result<T, DataError>

Implementors§