NSObjectNSComparisonMethods

Trait NSObjectNSComparisonMethods 

Source
pub unsafe trait NSObjectNSComparisonMethods:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn isEqualTo(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn isLessThanOrEqualTo(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn isLessThan(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn isGreaterThanOrEqualTo(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn isGreaterThan(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn isNotEqualTo(&self, object: Option<&AnyObject>) -> bool { ... }
    unsafe fn doesContain(&self, object: &AnyObject) -> bool { ... }
    fn isLike(&self, object: &NSString) -> bool { ... }
    fn isCaseInsensitiveLike(&self, object: &NSString) -> bool { ... }
}
Available on crate feature NSScriptWhoseTests only.
Expand description

Category “NSComparisonMethods” on NSObject.

Provided Methods§

Source

unsafe fn isEqualTo(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn isLessThanOrEqualTo(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn isLessThan(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn isGreaterThanOrEqualTo(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn isGreaterThan(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn isNotEqualTo(&self, object: Option<&AnyObject>) -> bool

§Safety

object should be of the correct type.

Source

unsafe fn doesContain(&self, object: &AnyObject) -> bool

§Safety

object should be of the correct type.

Source

fn isLike(&self, object: &NSString) -> bool

Available on crate feature NSString only.
Source

fn isCaseInsensitiveLike(&self, object: &NSString) -> bool

Available on crate feature NSString only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§