#[repr(isize)]
pub enum NSComparisonResult {
Ascending,
Same,
Descending,
}
Expand description
Constants that indicate sort order.
Variants
Ascending
The left operand is smaller than the right operand.
Same
The two operands are equal.
Descending
The left operand is greater than the right operand.
Trait Implementations
sourceimpl Clone for NSComparisonResult
impl Clone for NSComparisonResult
sourcefn clone(&self) -> NSComparisonResult
fn clone(&self) -> NSComparisonResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NSComparisonResult
impl Debug for NSComparisonResult
sourceimpl Default for NSComparisonResult
impl Default for NSComparisonResult
sourceimpl Encode for NSComparisonResult
impl Encode for NSComparisonResult
sourceimpl From<NSComparisonResult> for Ordering
impl From<NSComparisonResult> for Ordering
sourcefn from(comparison_result: NSComparisonResult) -> Self
fn from(comparison_result: NSComparisonResult) -> Self
Converts to this type from the input type.
sourceimpl From<Ordering> for NSComparisonResult
impl From<Ordering> for NSComparisonResult
sourceimpl Hash for NSComparisonResult
impl Hash for NSComparisonResult
sourceimpl Ord for NSComparisonResult
impl Ord for NSComparisonResult
sourceimpl PartialOrd<NSComparisonResult> for NSComparisonResult
impl PartialOrd<NSComparisonResult> for NSComparisonResult
sourcefn partial_cmp(&self, other: &NSComparisonResult) -> Option<Ordering>
fn partial_cmp(&self, other: &NSComparisonResult) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl RefEncode for NSComparisonResult
impl RefEncode for NSComparisonResult
sourceconst ENCODING_REF: Encoding<'static> = Encoding::Pointer(&Self::ENCODING)
const ENCODING_REF: Encoding<'static> = Encoding::Pointer(&Self::ENCODING)
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSComparisonResult
impl Eq for NSComparisonResult
impl StructuralEq for NSComparisonResult
impl StructuralPartialEq for NSComparisonResult
Auto Trait Implementations
impl RefUnwindSafe for NSComparisonResult
impl Send for NSComparisonResult
impl Sync for NSComparisonResult
impl Unpin for NSComparisonResult
impl UnwindSafe for NSComparisonResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more