#[repr(isize)]pub enum NSComparisonResult {
Ascending = -1,
Same = 0,
Descending = 1,
}
Available on crate feature
NSObjCRuntime
only.Expand description
Constants that indicate sort order.
Variants§
Ascending = -1
The left operand is smaller than the right operand.
Same = 0
The two operands are equal.
Descending = 1
The left operand is greater than the right operand.
Trait Implementations§
Source§impl Clone for NSComparisonResult
impl Clone for NSComparisonResult
Source§fn clone(&self) -> NSComparisonResult
fn clone(&self) -> NSComparisonResult
Returns a copy 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 NSComparisonResult
impl Debug for NSComparisonResult
Source§impl Default for NSComparisonResult
impl Default for NSComparisonResult
Source§impl Encode for NSComparisonResult
impl Encode for NSComparisonResult
Source§impl From<NSComparisonResult> for Ordering
impl From<NSComparisonResult> for Ordering
Source§fn from(comparison_result: NSComparisonResult) -> Self
fn from(comparison_result: NSComparisonResult) -> Self
Converts to this type from the input type.
Source§impl From<Ordering> for NSComparisonResult
impl From<Ordering> for NSComparisonResult
Source§impl Hash for NSComparisonResult
impl Hash for NSComparisonResult
Source§impl Ord for NSComparisonResult
impl Ord for NSComparisonResult
Source§fn cmp(&self, other: &NSComparisonResult) -> Ordering
fn cmp(&self, other: &NSComparisonResult) -> 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 NSComparisonResult
impl PartialEq for NSComparisonResult
Source§impl PartialOrd for NSComparisonResult
impl PartialOrd for NSComparisonResult
Source§impl RefEncode for NSComparisonResult
impl RefEncode for NSComparisonResult
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSComparisonResult
impl Eq for NSComparisonResult
impl StructuralPartialEq for NSComparisonResult
Auto Trait Implementations§
impl Freeze for NSComparisonResult
impl RefUnwindSafe for NSComparisonResult
impl Send for NSComparisonResult
impl Sync for NSComparisonResult
impl Unpin for NSComparisonResult
impl UnwindSafe for NSComparisonResult
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<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.