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() -> Box<LocaleDirectionality>
pub fn create() -> Box<LocaleDirectionality>
Construct a new LocaleDirectionality instance using compiled data.
sourcepub fn create_with_provider(
provider: &DataProvider,
) -> Result<Box<LocaleDirectionality>, DataError>
pub fn create_with_provider( provider: &DataProvider, ) -> Result<Box<LocaleDirectionality>, DataError>
Construct a new LocaleDirectionality instance using a particular data source.
sourcepub fn create_with_expander(
expander: &LocaleExpander,
) -> Box<LocaleDirectionality>
pub fn create_with_expander( expander: &LocaleExpander, ) -> Box<LocaleDirectionality>
Construct a new LocaleDirectionality instance with a custom expander and compiled data.
sourcepub fn create_with_expander_and_provider(
provider: &DataProvider,
expander: &LocaleExpander,
) -> Result<Box<LocaleDirectionality>, DataError>
pub fn create_with_expander_and_provider( provider: &DataProvider, expander: &LocaleExpander, ) -> Result<Box<LocaleDirectionality>, DataError>
Construct a new LocaleDirectionality instance with a custom expander and a particular data source.
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