pub struct LocaleList { /* private fields */ }Expand description
Ordered list of language tags, most preferred first. They select language-specific glyph
forms and hyphenation rules. Compose’s LocaleList.
Implementations§
Source§impl LocaleList
impl LocaleList
Sourcepub fn new(locales: Vec<String>) -> LocaleList
pub fn new(locales: Vec<String>) -> LocaleList
Creates a list from locales, which are language tags such as en-US.
Parses a comma-separated list of language tags such as en-US, fr. Blank entries are
skipped.
Trait Implementations§
Source§impl Clone for LocaleList
impl Clone for LocaleList
Source§fn clone(&self) -> LocaleList
fn clone(&self) -> LocaleList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocaleList
impl Debug for LocaleList
Source§impl Default for LocaleList
impl Default for LocaleList
Source§fn default() -> LocaleList
fn default() -> LocaleList
Returns the “default value” for a type. Read more
impl Eq for LocaleList
Source§impl Hash for LocaleList
impl Hash for LocaleList
Source§impl PartialEq for LocaleList
impl PartialEq for LocaleList
impl StructuralPartialEq for LocaleList
Auto Trait Implementations§
impl Forget for LocaleList
impl Freeze for LocaleList
impl Move for LocaleList
impl RefUnwindSafe for LocaleList
impl Send for LocaleList
impl Sync for LocaleList
impl Unpin for LocaleList
impl UnsafeUnpin for LocaleList
impl UnwindSafe for LocaleList
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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