[−][src]Struct rust_icu_ucol::UCollator
Implementations
impl UCollator
[src]
pub fn strcoll(&self, first: &UChar, second: &UChar) -> Ordering
[src]
Compares strings first
and second
according to the collation rules in this collator.
Returns Ordering::Less if first
compares as less than second
, and for other return
codes respectively.
Implements ucol_strcoll
pub fn strcoll_utf8(
&self,
first: impl AsRef<str>,
second: impl AsRef<str>
) -> Result<Ordering, Error>
[src]
&self,
first: impl AsRef<str>,
second: impl AsRef<str>
) -> Result<Ordering, Error>
Compares strings first
and second
according to the collation rules in this collator.
Returns Ordering::Less if first
compares as less than second
, and for other return
codes respectively.
In contrast to UCollator::strcoll, this function requires no string conversions to compare two rust strings.
Implements ucol_strcoll
Trait Implementations
impl Debug for UCollator
[src]
impl Drop for UCollator
[src]
impl<'_> TryFrom<&'_ str> for UCollator
[src]
Auto Trait Implementations
impl RefUnwindSafe for UCollator
impl !Send for UCollator
impl !Sync for UCollator
impl Unpin for UCollator
impl UnwindSafe for UCollator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,