Struct icu_capi::displaynames::ffi::DisplayNamesOptionsV1
source · #[repr(C)]pub struct DisplayNamesOptionsV1 {
pub style: DiplomatOption<DisplayNamesStyle>,
pub fallback: DiplomatOption<DisplayNamesFallback>,
pub language_display: DiplomatOption<LanguageDisplay>,
}
Fields§
§style: DiplomatOption<DisplayNamesStyle>
The optional formatting style to use for display name.
fallback: DiplomatOption<DisplayNamesFallback>
The fallback return when the system does not have the requested display name, defaults to “code”.
language_display: DiplomatOption<LanguageDisplay>
The language display kind, defaults to “dialect”.
Trait Implementations§
source§impl From<DisplayNamesOptionsV1> for DisplayNamesOptions
impl From<DisplayNamesOptionsV1> for DisplayNamesOptions
source§fn from(other: DisplayNamesOptionsV1) -> DisplayNamesOptions
fn from(other: DisplayNamesOptionsV1) -> DisplayNamesOptions
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DisplayNamesOptionsV1
impl RefUnwindSafe for DisplayNamesOptionsV1
impl Send for DisplayNamesOptionsV1
impl Sync for DisplayNamesOptionsV1
impl Unpin for DisplayNamesOptionsV1
impl UnwindSafe for DisplayNamesOptionsV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more