Struct icu_provider::prelude::ResourceOptions
source · [−]pub struct ResourceOptions {
pub variant: Option<Cow<'static, str>>,
pub langid: Option<LanguageIdentifier>,
}
Expand description
A variant and language identifier, used for requesting data from a
DataProvider
.
The fields in a ResourceOptions
are not generally known until runtime.
Fields
variant: Option<Cow<'static, str>>
langid: Option<LanguageIdentifier>
Implementations
Returns whether this ResourceOptions
has all empty fields (no components).
Trait Implementations
Returns the “default value” for a type. Read more
Create a ResourceOptions with the given language identifier and an empty variant field.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Writes bytes to the given sink. Errors from the sink are bubbled up. The default implementation delegates to write_to_parts, and discards any Part annotations. Read more
Returns a hint for the number of bytes that will be written to the sink. Read more
Write bytes and Part annotations to the given sink. Errors from the sink are bubbled up. The default implementation delegates to write_to, and doesn’t produce any Part annotations. Read more
Creates a new String with the data from this Writeable. Like ToString, but smaller and faster. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResourceOptions
impl Send for ResourceOptions
impl Sync for ResourceOptions
impl Unpin for ResourceOptions
impl UnwindSafe for ResourceOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<Self, fn(_: &DataRequest) -> bool>
fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<Self, fn(_: &DataRequest) -> bool>
Creates a filterable data provider with the given name for debugging. Read more