pub struct LocaleChange {
pub locale: String,
pub direction: LayoutDirection,
}Expand description
What changed when an app switched locale: the locale it is now in, and the writing direction that locale reads in.
Both are things core already owns. The tag is an opaque string, and the
direction is the cascade’s own crate::components::LayoutDirection,
so core learns nothing about BCP-47 or Fluent by carrying this back.
Fields§
§locale: StringThe locale now active.
direction: LayoutDirectionThe base writing direction that locale reads in.
Trait Implementations§
Source§impl Clone for LocaleChange
impl Clone for LocaleChange
Source§fn clone(&self) -> LocaleChange
fn clone(&self) -> LocaleChange
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 LocaleChange
impl Debug for LocaleChange
Source§impl PartialEq for LocaleChange
impl PartialEq for LocaleChange
Source§fn eq(&self, other: &LocaleChange) -> bool
fn eq(&self, other: &LocaleChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LocaleChange
impl StructuralPartialEq for LocaleChange
Auto Trait Implementations§
impl Freeze for LocaleChange
impl RefUnwindSafe for LocaleChange
impl Send for LocaleChange
impl Sync for LocaleChange
impl Unpin for LocaleChange
impl UnsafeUnpin for LocaleChange
impl UnwindSafe for LocaleChange
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,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.