#[repr(isize)]pub enum CFComparisonResult {
LessThan = -1,
EqualTo = 0,
GreaterThan = 1,
}Expand description
Constants returned by comparison functions, indicating sort order.
See documentation.
Variants§
LessThan = -1
The first value is less than the second value.
EqualTo = 0
The first value is equal to the second value.
GreaterThan = 1
The first value is greater than the second value.
Implementations§
Source§impl CFComparisonResult
impl CFComparisonResult
Sourcepub fn into_ordering(self) -> Ordering
pub fn into_ordering(self) -> Ordering
Converts this comparison result into a Rust ordering.
Trait Implementations§
Source§impl Clone for CFComparisonResult
impl Clone for CFComparisonResult
Source§fn clone(&self) -> CFComparisonResult
fn clone(&self) -> CFComparisonResult
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 CFComparisonResult
impl Debug for CFComparisonResult
Source§impl From<CFComparisonResult> for NSComparisonResult
impl From<CFComparisonResult> for NSComparisonResult
Source§fn from(result: CFComparisonResult) -> Self
fn from(result: CFComparisonResult) -> Self
Converts to this type from the input type.
Source§impl From<CFComparisonResult> for Ordering
impl From<CFComparisonResult> for Ordering
Source§fn from(result: CFComparisonResult) -> Self
fn from(result: CFComparisonResult) -> Self
Converts to this type from the input type.
Source§impl From<NSComparisonResult> for CFComparisonResult
impl From<NSComparisonResult> for CFComparisonResult
Source§fn from(result: NSComparisonResult) -> Self
fn from(result: NSComparisonResult) -> Self
Converts to this type from the input type.
Source§impl From<Ordering> for CFComparisonResult
impl From<Ordering> for CFComparisonResult
Source§impl Hash for CFComparisonResult
impl Hash for CFComparisonResult
Source§impl Ord for CFComparisonResult
impl Ord for CFComparisonResult
Source§fn cmp(&self, other: &CFComparisonResult) -> Ordering
fn cmp(&self, other: &CFComparisonResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CFComparisonResult
impl PartialEq for CFComparisonResult
Source§impl PartialOrd for CFComparisonResult
impl PartialOrd for CFComparisonResult
impl Copy for CFComparisonResult
impl Eq for CFComparisonResult
impl StructuralPartialEq for CFComparisonResult
Auto Trait Implementations§
impl Freeze for CFComparisonResult
impl RefUnwindSafe for CFComparisonResult
impl Send for CFComparisonResult
impl Sync for CFComparisonResult
impl Unpin for CFComparisonResult
impl UnwindSafe for CFComparisonResult
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