pub enum Sortedness {
Unknown,
KnownUnsorted,
Increasing,
Decreasing,
IncreasingNaFirst,
DecreasingNaFirst,
}Expand description
Sortedness hint for ALTREP vectors.
Variants§
Unknown
Unknown sortedness.
KnownUnsorted
Known to be unsorted.
This corresponds to KNOWN_UNSORTED in R.
Increasing
Sorted in increasing order (may have ties).
Decreasing
Sorted in decreasing order (may have ties).
IncreasingNaFirst
Sorted in increasing order, with NAs first.
This corresponds to SORTED_INCR_NA_1ST in R.
DecreasingNaFirst
Sorted in decreasing order, with NAs first.
This corresponds to SORTED_DECR_NA_1ST in R.
Implementations§
Source§impl Sortedness
impl Sortedness
Trait Implementations§
Source§impl Clone for Sortedness
impl Clone for Sortedness
Source§fn clone(&self) -> Sortedness
fn clone(&self) -> Sortedness
Returns a duplicate of the value. Read more
1.0.0 · 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 Sortedness
impl Debug for Sortedness
Source§impl From<Sortedness> for i32
Convert Sortedness to R’s integer representation.
impl From<Sortedness> for i32
Convert Sortedness to R’s integer representation.
Source§fn from(s: Sortedness) -> i32
fn from(s: Sortedness) -> i32
Converts to this type from the input type.
Source§impl From<i32> for Sortedness
Convert R’s integer sortedness code to Sortedness.
impl From<i32> for Sortedness
Convert R’s integer sortedness code to Sortedness.
Source§impl PartialEq for Sortedness
impl PartialEq for Sortedness
impl Copy for Sortedness
impl Eq for Sortedness
impl StructuralPartialEq for Sortedness
Auto Trait Implementations§
impl Freeze for Sortedness
impl RefUnwindSafe for Sortedness
impl Send for Sortedness
impl Sync for Sortedness
impl Unpin for Sortedness
impl UnsafeUnpin for Sortedness
impl UnwindSafe for Sortedness
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