Struct icu_capi::locale_directionality::ffi::LocaleDirectionality
source · pub struct LocaleDirectionality(pub LocaleDirectionality);
Tuple Fields§
§0: LocaleDirectionality
Implementations§
source§impl LocaleDirectionality
impl LocaleDirectionality
sourcepub fn create(
provider: &DataProvider,
) -> Result<Box<LocaleDirectionality>, DataError>
pub fn create( provider: &DataProvider, ) -> Result<Box<LocaleDirectionality>, DataError>
Construct a new LocaleDirectionality instance
sourcepub fn create_with_expander(
provider: &DataProvider,
expander: &LocaleExpander,
) -> Result<Box<LocaleDirectionality>, DataError>
pub fn create_with_expander( provider: &DataProvider, expander: &LocaleExpander, ) -> Result<Box<LocaleDirectionality>, DataError>
Construct a new LocaleDirectionality instance with a custom expander
pub fn get(&self, locale: &Locale) -> LocaleDirection
pub fn is_left_to_right(&self, locale: &Locale) -> bool
pub fn is_right_to_left(&self, locale: &Locale) -> bool
Auto Trait Implementations§
impl Freeze for LocaleDirectionality
impl RefUnwindSafe for LocaleDirectionality
impl Send for LocaleDirectionality
impl Sync for LocaleDirectionality
impl Unpin for LocaleDirectionality
impl UnwindSafe for LocaleDirectionality
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