Struct fidl_fuchsia_intl::LocaleId
source · pub struct LocaleId {
pub id: String,
}
Expand description
Typed identifier for a single Locale, which is a set of internationalization-related properties.
Most APIs that consume locales will probably want to accept a vector of locales to account for priority.
Fields§
§id: String
Unicode BCP-47 Locale Identifier (http://www.unicode.org/reports/tr35/#BCP_47_Conformance).
Must be canonicalized and well-formed. This field should not be populated from arbitrary user- or third-party input, but instead generated programmatically.
Includes language, region, script, and variant, plus Unicode extensions (under the “u” singleton). Other extensions are allowed but ignored.
Examples: “en-US” American English “fr-u-hc-h12” French, with 12-hour clock “ar-EG-u-fw-mon-nu-latn” Egyptian Arabic with “Latin” numerals and first day of week on Monday
Trait Implementations§
source§impl Decode<LocaleId> for LocaleId
impl Decode<LocaleId> for LocaleId
source§impl Ord for LocaleId
impl Ord for LocaleId
source§impl PartialEq for LocaleId
impl PartialEq for LocaleId
source§impl PartialOrd for LocaleId
impl PartialOrd for LocaleId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for LocaleId
impl TypeMarker for LocaleId
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for LocaleId
impl ValueTypeMarker for LocaleId
impl Eq for LocaleId
impl Persistable for LocaleId
impl StructuralPartialEq for LocaleId
Auto Trait Implementations§
impl Freeze for LocaleId
impl RefUnwindSafe for LocaleId
impl Send for LocaleId
impl Sync for LocaleId
impl Unpin for LocaleId
impl UnwindSafe for LocaleId
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)