pub enum SortFlags {
Regular,
Numeric,
String,
StringFoldCase,
Natural,
NaturalFoldCase,
Locale,
}Expand description
The $flags of the sort functions.
Variants§
Regular
SORT_REGULAR: PHP 8 <=>.
Numeric
SORT_NUMERIC: as floats.
String
SORT_STRING: as strings, byte order.
StringFoldCase
SORT_STRING | SORT_FLAG_CASE: as strings, ASCII case-insensitively.
Natural
SORT_NATURAL: strnatcmp.
NaturalFoldCase
SORT_NATURAL | SORT_FLAG_CASE: strnatcasecmp.
Locale
SORT_LOCALE_STRING: strcoll (the C locale: byte order).
Implementations§
Trait Implementations§
impl Copy for SortFlags
impl Eq for SortFlags
impl StructuralPartialEq for SortFlags
Auto Trait Implementations§
impl Forget for SortFlags
impl Freeze for SortFlags
impl Move for SortFlags
impl RefUnwindSafe for SortFlags
impl Send for SortFlags
impl Sync for SortFlags
impl Unpin for SortFlags
impl UnsafeUnpin for SortFlags
impl UnwindSafe for SortFlags
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.