Struct NSObject

Source
#[repr(C)]
pub struct NSObject { /* private fields */ }
Expand description

The root class of most Objective-C class hierarchies.

This represents the NSObject class. The name “NSObject” also refers to a protocol, see NSObjectProtocol for that.

This class has been defined in objc since macOS 10.8, but is also re-exported under objc2_foundation::NSObject, you might want to use that path instead.

Implementations§

Source§

impl NSObject

Source

pub fn new() -> Retained<NSObject>

Create a new empty NSObject.

This method is a shorthand for calling alloc and then init.

Source

pub fn init(this: Allocated<NSObject>) -> Retained<NSObject>

Initialize an already allocated object.

See Apple’s documentation for details.

§Example
use objc2::runtime::NSObject;
use objc2::AnyThread;

let obj = NSObject::init(NSObject::alloc());
Source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

Source

pub fn class(&self) -> &'static AnyClass

Dynamically find the class of this object.

§Panics

May panic if the object is invalid (which may be the case for objects returned from unavailable init/new methods).

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
Source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Source

pub fn downcast_ref<T>(&self) -> Option<&T>
where T: DowncastTarget,

Attempt to downcast the object to a class of type T.

This is the reference-variant. Use Retained::downcast if you want to convert a retained object to another type.

§Mutable classes

Some classes have immutable and mutable variants, such as NSString and NSMutableString.

When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.

So using this method to convert a NSString to a NSMutableString, while not unsound, is generally frowned upon unless you created the string yourself, or the API explicitly documents the string to be mutable.

See Apple’s documentation on mutability and on isKindOfClass: for more details.

§Generic classes

Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.

You can, however, safely downcast to generic collections where all the type-parameters are AnyObject.

§Panics

This works internally by calling isKindOfClass:. That means that the object must have the instance method of that name, and an exception will be thrown (if CoreFoundation is linked) or the process will abort if that is not the case. In the vast majority of cases, you don’t need to worry about this, since both root objects NSObject and NSProxy implement this method.

§Examples

Cast an NSString back and forth from NSObject.

use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};

let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();

Try (and fail) to cast an NSObject to an NSString.

use objc2_foundation::{NSObject, NSString};

let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());

Try to cast to an array of strings.

use objc2_foundation::{NSArray, NSObject, NSString};

let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();

This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.

Downcast when processing each element instead.

use objc2_foundation::{NSArray, NSObject, NSString};

let arr = NSArray::from_retained_slice(&[NSObject::new()]);

for elem in arr {
    if let Some(data) = elem.downcast_ref::<NSString>() {
        // handle `data`
    }
}

Trait Implementations§

Source§

impl AsRef<AnyObject> for NSObject

Source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAffineTransform

Available on crate feature NSAffineTransform only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAppleEventDescriptor

Available on crate feature NSAppleEventDescriptor only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAppleEventManager

Available on crate feature NSAppleEventManager only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAppleScript

Available on crate feature NSAppleScript only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSArchiver

Available on crate features NSArchiver and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSArray<ObjectType>

Available on crate feature NSArray only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAssertionHandler

Available on crate feature NSException only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAttributedString

Available on crate feature NSAttributedString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAttributedStringMarkdownParsingOptions

Available on crate feature NSAttributedString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAttributedStringMarkdownSourcePosition

Available on crate feature NSAttributedString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSAutoreleasePool

Available on crate feature NSAutoreleasePool only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSBackgroundActivityScheduler

Available on crate feature NSBackgroundActivityScheduler only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSBlockOperation

Available on crate feature NSOperation only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSBundle

Available on crate feature NSBundle only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSBundleResourceRequest

Available on crate feature NSBundle only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSByteCountFormatter

Available on crate features NSByteCountFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSCache<KeyType, ObjectType>

Available on crate feature NSCache only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCachedURLResponse

Available on crate feature NSURLCache only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCalendar

Available on crate feature NSCalendar only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCalendarDate

Available on crate features NSCalendarDate and NSDate only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCharacterSet

Available on crate feature NSCharacterSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSClassDescription

Available on crate feature NSClassDescription only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCloneCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCloseCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCoder

Available on crate feature NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSComparisonPredicate

Available on crate features NSComparisonPredicate and NSPredicate only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCompoundPredicate

Available on crate features NSCompoundPredicate and NSPredicate only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCondition

Available on crate feature NSLock only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSConditionLock

Available on crate feature NSLock only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSConnection

Available on crate feature NSConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSConstantString

Available on crate feature NSString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCountCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSCountedSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSCreateCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSData

Available on crate feature NSData only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDataDetector

Available on crate feature NSRegularExpression only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDate

Available on crate feature NSDate only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDateComponents

Available on crate feature NSCalendar only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDateComponentsFormatter

Available on crate features NSDateComponentsFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDateFormatter

Available on crate features NSDateFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDateInterval

Available on crate feature NSDateInterval only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDateIntervalFormatter

Available on crate features NSDateIntervalFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDecimalNumber

Available on crate features NSDecimalNumber and NSValue only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDecimalNumberHandler

Available on crate feature NSDecimalNumber only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDeleteCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDimension

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSDirectoryEnumerator<ObjectType>

Available on crate features NSFileManager and NSEnumerator only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDistantObjectRequest

Available on crate feature NSConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDistributedLock

Available on crate feature NSDistributedLock only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSDistributedNotificationCenter

Available on crate features NSDistributedNotificationCenter and NSNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSEnergyFormatter

Available on crate features NSEnergyFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSEnumerator<ObjectType>

Available on crate feature NSEnumerator only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSError

Available on crate feature NSError only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSException

Available on crate feature NSException only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSExistsCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSExpression

Available on crate feature NSExpression only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSExtensionContext

Available on crate feature NSExtensionContext only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSExtensionItem

Available on crate feature NSExtensionItem only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileAccessIntent

Available on crate feature NSFileCoordinator only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileCoordinator

Available on crate feature NSFileCoordinator only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileHandle

Available on crate feature NSFileHandle only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileManager

Available on crate feature NSFileManager only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileProviderService

Available on crate feature NSFileManager only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileSecurity

Available on crate feature NSURL only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileVersion

Available on crate feature NSFileVersion only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFileWrapper

Available on crate feature NSFileWrapper only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSFormatter

Available on crate feature NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSGarbageCollector

Available on crate feature NSGarbageCollector only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSGetCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSHTTPCookie

Available on crate feature NSHTTPCookie only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSHTTPCookieStorage

Available on crate feature NSHTTPCookieStorage only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSHTTPURLResponse

Available on crate feature NSURLResponse only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSHashTable<ObjectType>

Available on crate feature NSHashTable only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSHost

Available on crate feature NSHost only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSISO8601DateFormatter

Available on crate features NSISO8601DateFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSIndexPath

Available on crate feature NSIndexPath only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSIndexSet

Available on crate feature NSIndexSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSIndexSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSInflectionRule

Available on crate feature NSInflectionRule only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSInflectionRuleExplicit

Available on crate feature NSInflectionRule only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSInputStream

Available on crate feature NSStream only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSInvocation

Available on crate feature NSInvocation only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSInvocationOperation

Available on crate feature NSOperation only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSItemProvider

Available on crate feature NSItemProvider only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSJSONSerialization

Available on crate feature NSJSONSerialization only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSKeyValueSharedObservers

Available on crate feature NSKeyValueSharedObservers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSKeyValueSharedObserversSnapshot

Available on crate feature NSKeyValueSharedObservers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSKeyedArchiver

Available on crate features NSKeyedArchiver and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSKeyedUnarchiver

Available on crate features NSKeyedArchiver and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLengthFormatter

Available on crate features NSLengthFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLinguisticTagger

Available on crate feature NSLinguisticTagger only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSListFormatter

Available on crate features NSListFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLocale

Available on crate feature NSLocale only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLocalizedNumberFormatRule

Available on crate feature NSLocalizedNumberFormatRule only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLock

Available on crate feature NSLock only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSLogicalTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMachBootstrapServer

Available on crate feature NSPortNameServer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMachPort

Available on crate feature NSPort only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSMapTable<KeyType, ObjectType>

Available on crate feature NSMapTable only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMassFormatter

Available on crate features NSMassFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<UnitType: ?Sized + Message> AsRef<NSObject> for NSMeasurement<UnitType>

Available on crate feature NSMeasurement only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMeasurementFormatter

Available on crate features NSMeasurementFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMessagePort

Available on crate feature NSPort only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMessagePortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMetadataItem

Available on crate feature NSMetadata only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMetadataQuery

Available on crate feature NSMetadata only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMetadataQueryAttributeValueTuple

Available on crate feature NSMetadata only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMetadataQueryResultGroup

Available on crate feature NSMetadata only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMethodSignature

Available on crate feature NSMethodSignature only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMiddleSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMorphology

Available on crate feature NSMorphology only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMorphologyCustomPronoun

Available on crate feature NSMorphology only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMorphologyPronoun

Available on crate feature NSMorphology only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMoveCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableArray<ObjectType>

Available on crate feature NSArray only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableAttributedString

Available on crate feature NSAttributedString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableCharacterSet

Available on crate feature NSCharacterSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableData

Available on crate feature NSData only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableIndexSet

Available on crate feature NSIndexSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSMutableSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableString

Available on crate feature NSString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSMutableURLRequest

Available on crate feature NSURLRequest only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNameSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNetService

Available on crate feature NSNetServices only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNetServiceBrowser

Available on crate feature NSNetServices only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNotification

Available on crate feature NSNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNotificationCenter

Available on crate feature NSNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNotificationQueue

Available on crate feature NSNotificationQueue only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNull

Available on crate feature NSNull only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNumber

Available on crate feature NSValue only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSNumberFormatter

Available on crate features NSNumberFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSObject

Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSOperation

Available on crate feature NSOperation only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSOperationQueue

Available on crate feature NSOperation only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSOrderedCollectionChange<ObjectType>

Available on crate feature NSOrderedCollectionChange only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSOrderedCollectionDifference<ObjectType>

Available on crate feature NSOrderedCollectionDifference only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSOrthography

Available on crate feature NSOrthography only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSOutputStream

Available on crate feature NSStream only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPersonNameComponents

Available on crate feature NSPersonNameComponents only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPersonNameComponentsFormatter

Available on crate features NSPersonNameComponentsFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPipe

Available on crate feature NSFileHandle only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPointerArray

Available on crate feature NSPointerArray only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPointerFunctions

Available on crate feature NSPointerFunctions only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPort

Available on crate feature NSPort only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPortCoder

Available on crate features NSPortCoder and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPortMessage

Available on crate feature NSPortMessage only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPositionalSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPredicate

Available on crate feature NSPredicate only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPresentationIntent

Available on crate feature NSAttributedString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSProcessInfo

Available on crate feature NSProcessInfo only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSProgress

Available on crate feature NSProgress only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPropertyListSerialization

Available on crate feature NSPropertyList only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPropertySpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSPurgeableData

Available on crate feature NSData only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSQuitCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRandomSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRangeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRecursiveLock

Available on crate feature NSLock only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRegularExpression

Available on crate feature NSRegularExpression only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRelativeDateTimeFormatter

Available on crate features NSRelativeDateTimeFormatter and NSFormatter only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRelativeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSRunLoop

Available on crate feature NSRunLoop only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScanner

Available on crate feature NSScanner only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptClassDescription

Available on crate features NSScriptClassDescription and NSClassDescription only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptCoercionHandler

Available on crate feature NSScriptCoercionHandler only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptCommand

Available on crate feature NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptCommandDescription

Available on crate feature NSScriptCommandDescription only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptExecutionContext

Available on crate feature NSScriptExecutionContext only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptObjectSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptSuiteRegistry

Available on crate feature NSScriptSuiteRegistry only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSScriptWhoseTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSecureUnarchiveFromDataTransformer

Available on crate feature NSValueTransformer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ObjectType: ?Sized + Message> AsRef<NSObject> for NSSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSetCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSimpleCString

Available on crate feature NSString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSocketPort

Available on crate feature NSPort only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSocketPortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSortDescriptor

Available on crate feature NSSortDescriptor only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSpecifierTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSSpellServer

Available on crate feature NSSpellServer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSStream

Available on crate feature NSStream only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSString

Available on crate feature NSString only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSTask

Available on crate feature NSTask only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSTermOfAddress

Available on crate feature NSTermOfAddress only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSTextCheckingResult

Available on crate feature NSTextCheckingResult only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSThread

Available on crate feature NSThread only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSTimeZone

Available on crate feature NSTimeZone only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSTimer

Available on crate feature NSTimer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURL

Available on crate feature NSURL only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLAuthenticationChallenge

Available on crate feature NSURLAuthenticationChallenge only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLCache

Available on crate feature NSURLCache only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLComponents

Available on crate feature NSURL only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLConnection

Available on crate feature NSURLConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLCredential

Available on crate feature NSURLCredential only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLCredentialStorage

Available on crate feature NSURLCredentialStorage only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLDownload

Available on crate feature NSURLDownload only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLHandle

Available on crate feature NSURLHandle only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLProtectionSpace

Available on crate feature NSURLProtectionSpace only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLProtocol

Available on crate feature NSURLProtocol only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLQueryItem

Available on crate feature NSURL only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLRequest

Available on crate feature NSURLRequest only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLResponse

Available on crate feature NSURLResponse only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSession

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionConfiguration

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionDataTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionDownloadTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionStreamTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionTaskMetrics

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionTaskTransactionMetrics

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionUploadTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionWebSocketMessage

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSURLSessionWebSocketTask

Available on crate feature NSURLSession only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUUID

Available on crate feature NSUUID only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUbiquitousKeyValueStore

Available on crate feature NSUbiquitousKeyValueStore only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnarchiver

Available on crate features NSArchiver and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUndoManager

Available on crate feature NSUndoManager only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUniqueIDSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnit

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitAcceleration

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitAngle

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitArea

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitConcentrationMass

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitConverter

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitConverterLinear

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitDispersion

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitDuration

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitElectricCharge

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitElectricCurrent

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitElectricPotentialDifference

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitElectricResistance

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitEnergy

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitFrequency

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitFuelEfficiency

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitIlluminance

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitInformationStorage

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitLength

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitMass

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitPower

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitPressure

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitSpeed

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitTemperature

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUnitVolume

Available on crate feature NSUnit only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserActivity

Available on crate feature NSUserActivity only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserAppleScriptTask

Available on crate feature NSUserScriptTask only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserAutomatorTask

Available on crate feature NSUserScriptTask only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserDefaults

Available on crate feature NSUserDefaults only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserNotification

Available on crate feature NSUserNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserNotificationAction

Available on crate feature NSUserNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserNotificationCenter

Available on crate feature NSUserNotification only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserScriptTask

Available on crate feature NSUserScriptTask only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSUserUnixTask

Available on crate feature NSUserScriptTask only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSValue

Available on crate feature NSValue only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSValueTransformer

Available on crate feature NSValueTransformer only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSWhoseSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLDTD

Available on crate features NSXMLDTD and NSXMLNode only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLDTDNode

Available on crate features NSXMLDTDNode and NSXMLNode only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLDocument

Available on crate features NSXMLDocument and NSXMLNode only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLElement

Available on crate features NSXMLElement and NSXMLNode only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLNode

Available on crate feature NSXMLNode only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXMLParser

Available on crate feature NSXMLParser only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXPCCoder

Available on crate features NSXPCConnection and NSCoder only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXPCConnection

Available on crate feature NSXPCConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXPCInterface

Available on crate feature NSXPCConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXPCListener

Available on crate feature NSXPCConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for NSXPCListenerEndpoint

Available on crate feature NSXPCConnection only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<AnyObject> for NSObject

Source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAffineTransform

Available on crate feature NSAffineTransform only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAppleEventDescriptor

Available on crate feature NSAppleEventDescriptor only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAppleEventManager

Available on crate feature NSAppleEventManager only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAppleScript

Available on crate feature NSAppleScript only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSArchiver

Available on crate features NSArchiver and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSArray<ObjectType>

Available on crate feature NSArray only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAssertionHandler

Available on crate feature NSException only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAttributedString

Available on crate feature NSAttributedString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAttributedStringMarkdownParsingOptions

Available on crate feature NSAttributedString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAttributedStringMarkdownSourcePosition

Available on crate feature NSAttributedString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSAutoreleasePool

Available on crate feature NSAutoreleasePool only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSBackgroundActivityScheduler

Available on crate feature NSBackgroundActivityScheduler only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSBlockOperation

Available on crate feature NSOperation only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSBundle

Available on crate feature NSBundle only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSBundleResourceRequest

Available on crate feature NSBundle only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSByteCountFormatter

Available on crate features NSByteCountFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSCache<KeyType, ObjectType>

Available on crate feature NSCache only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCachedURLResponse

Available on crate feature NSURLCache only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCalendar

Available on crate feature NSCalendar only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCalendarDate

Available on crate features NSCalendarDate and NSDate only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCharacterSet

Available on crate feature NSCharacterSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSClassDescription

Available on crate feature NSClassDescription only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCloneCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCloseCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCoder

Available on crate feature NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSComparisonPredicate

Available on crate features NSComparisonPredicate and NSPredicate only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCompoundPredicate

Available on crate features NSCompoundPredicate and NSPredicate only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCondition

Available on crate feature NSLock only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSConditionLock

Available on crate feature NSLock only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSConnection

Available on crate feature NSConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSConstantString

Available on crate feature NSString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCountCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSCountedSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSCreateCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSData

Available on crate feature NSData only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDataDetector

Available on crate feature NSRegularExpression only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDate

Available on crate feature NSDate only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDateComponents

Available on crate feature NSCalendar only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDateComponentsFormatter

Available on crate features NSDateComponentsFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDateFormatter

Available on crate features NSDateFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDateInterval

Available on crate feature NSDateInterval only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDateIntervalFormatter

Available on crate features NSDateIntervalFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDecimalNumber

Available on crate features NSDecimalNumber and NSValue only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDecimalNumberHandler

Available on crate feature NSDecimalNumber only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDeleteCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDimension

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSDirectoryEnumerator<ObjectType>

Available on crate features NSFileManager and NSEnumerator only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDistantObjectRequest

Available on crate feature NSConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDistributedLock

Available on crate feature NSDistributedLock only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSDistributedNotificationCenter

Available on crate features NSDistributedNotificationCenter and NSNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSEnergyFormatter

Available on crate features NSEnergyFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSEnumerator<ObjectType>

Available on crate feature NSEnumerator only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSError

Available on crate feature NSError only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSException

Available on crate feature NSException only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSExistsCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSExpression

Available on crate feature NSExpression only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSExtensionContext

Available on crate feature NSExtensionContext only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSExtensionItem

Available on crate feature NSExtensionItem only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileAccessIntent

Available on crate feature NSFileCoordinator only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileCoordinator

Available on crate feature NSFileCoordinator only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileHandle

Available on crate feature NSFileHandle only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileManager

Available on crate feature NSFileManager only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileProviderService

Available on crate feature NSFileManager only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileSecurity

Available on crate feature NSURL only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileVersion

Available on crate feature NSFileVersion only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFileWrapper

Available on crate feature NSFileWrapper only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSFormatter

Available on crate feature NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSGarbageCollector

Available on crate feature NSGarbageCollector only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSGetCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSHTTPCookie

Available on crate feature NSHTTPCookie only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSHTTPCookieStorage

Available on crate feature NSHTTPCookieStorage only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSHTTPURLResponse

Available on crate feature NSURLResponse only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSHashTable<ObjectType>

Available on crate feature NSHashTable only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSHost

Available on crate feature NSHost only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSISO8601DateFormatter

Available on crate features NSISO8601DateFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSIndexPath

Available on crate feature NSIndexPath only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSIndexSet

Available on crate feature NSIndexSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSIndexSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSInflectionRule

Available on crate feature NSInflectionRule only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSInflectionRuleExplicit

Available on crate feature NSInflectionRule only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSInputStream

Available on crate feature NSStream only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSInvocation

Available on crate feature NSInvocation only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSInvocationOperation

Available on crate feature NSOperation only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSItemProvider

Available on crate feature NSItemProvider only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSJSONSerialization

Available on crate feature NSJSONSerialization only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSKeyValueSharedObservers

Available on crate feature NSKeyValueSharedObservers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSKeyValueSharedObserversSnapshot

Available on crate feature NSKeyValueSharedObservers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSKeyedArchiver

Available on crate features NSKeyedArchiver and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSKeyedUnarchiver

Available on crate features NSKeyedArchiver and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLengthFormatter

Available on crate features NSLengthFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLinguisticTagger

Available on crate feature NSLinguisticTagger only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSListFormatter

Available on crate features NSListFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLocale

Available on crate feature NSLocale only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLocalizedNumberFormatRule

Available on crate feature NSLocalizedNumberFormatRule only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLock

Available on crate feature NSLock only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSLogicalTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMachBootstrapServer

Available on crate feature NSPortNameServer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMachPort

Available on crate feature NSPort only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSMapTable<KeyType, ObjectType>

Available on crate feature NSMapTable only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMassFormatter

Available on crate features NSMassFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<UnitType: ?Sized + Message> Borrow<NSObject> for NSMeasurement<UnitType>

Available on crate feature NSMeasurement only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMeasurementFormatter

Available on crate features NSMeasurementFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMessagePort

Available on crate feature NSPort only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMessagePortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMetadataItem

Available on crate feature NSMetadata only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMetadataQuery

Available on crate feature NSMetadata only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMetadataQueryAttributeValueTuple

Available on crate feature NSMetadata only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMetadataQueryResultGroup

Available on crate feature NSMetadata only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMethodSignature

Available on crate feature NSMethodSignature only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMiddleSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMorphology

Available on crate feature NSMorphology only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMorphologyCustomPronoun

Available on crate feature NSMorphology only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMorphologyPronoun

Available on crate feature NSMorphology only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMoveCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableArray<ObjectType>

Available on crate feature NSArray only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableAttributedString

Available on crate feature NSAttributedString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableCharacterSet

Available on crate feature NSCharacterSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableData

Available on crate feature NSData only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<KeyType: ?Sized + Message, ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableIndexSet

Available on crate feature NSIndexSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSMutableSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableString

Available on crate feature NSString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSMutableURLRequest

Available on crate feature NSURLRequest only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNameSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNetService

Available on crate feature NSNetServices only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNetServiceBrowser

Available on crate feature NSNetServices only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNotification

Available on crate feature NSNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNotificationCenter

Available on crate feature NSNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNotificationQueue

Available on crate feature NSNotificationQueue only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNull

Available on crate feature NSNull only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNumber

Available on crate feature NSValue only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSNumberFormatter

Available on crate features NSNumberFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSOperation

Available on crate feature NSOperation only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSOperationQueue

Available on crate feature NSOperation only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSOrderedCollectionChange<ObjectType>

Available on crate feature NSOrderedCollectionChange only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSOrderedCollectionDifference<ObjectType>

Available on crate feature NSOrderedCollectionDifference only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSOrthography

Available on crate feature NSOrthography only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSOutputStream

Available on crate feature NSStream only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPersonNameComponents

Available on crate feature NSPersonNameComponents only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPersonNameComponentsFormatter

Available on crate features NSPersonNameComponentsFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPipe

Available on crate feature NSFileHandle only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPointerArray

Available on crate feature NSPointerArray only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPointerFunctions

Available on crate feature NSPointerFunctions only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPort

Available on crate feature NSPort only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPortCoder

Available on crate features NSPortCoder and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPortMessage

Available on crate feature NSPortMessage only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPositionalSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPredicate

Available on crate feature NSPredicate only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPresentationIntent

Available on crate feature NSAttributedString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSProcessInfo

Available on crate feature NSProcessInfo only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSProgress

Available on crate feature NSProgress only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPropertyListSerialization

Available on crate feature NSPropertyList only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPropertySpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSPurgeableData

Available on crate feature NSData only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSQuitCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRandomSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRangeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRecursiveLock

Available on crate feature NSLock only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRegularExpression

Available on crate feature NSRegularExpression only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRelativeDateTimeFormatter

Available on crate features NSRelativeDateTimeFormatter and NSFormatter only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRelativeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSRunLoop

Available on crate feature NSRunLoop only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScanner

Available on crate feature NSScanner only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptClassDescription

Available on crate features NSScriptClassDescription and NSClassDescription only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptCoercionHandler

Available on crate feature NSScriptCoercionHandler only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptCommand

Available on crate feature NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptCommandDescription

Available on crate feature NSScriptCommandDescription only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptExecutionContext

Available on crate feature NSScriptExecutionContext only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptObjectSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptSuiteRegistry

Available on crate feature NSScriptSuiteRegistry only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSScriptWhoseTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSecureUnarchiveFromDataTransformer

Available on crate feature NSValueTransformer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSSet<ObjectType>

Available on crate feature NSSet only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSetCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSimpleCString

Available on crate feature NSString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSocketPort

Available on crate feature NSPort only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSocketPortNameServer

Available on crate feature NSPortNameServer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSortDescriptor

Available on crate feature NSSortDescriptor only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSpecifierTest

Available on crate feature NSScriptWhoseTests only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSSpellServer

Available on crate feature NSSpellServer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSStream

Available on crate feature NSStream only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSString

Available on crate feature NSString only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSTask

Available on crate feature NSTask only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSTermOfAddress

Available on crate feature NSTermOfAddress only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSTextCheckingResult

Available on crate feature NSTextCheckingResult only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSThread

Available on crate feature NSThread only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSTimeZone

Available on crate feature NSTimeZone only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSTimer

Available on crate feature NSTimer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURL

Available on crate feature NSURL only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLAuthenticationChallenge

Available on crate feature NSURLAuthenticationChallenge only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLCache

Available on crate feature NSURLCache only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLComponents

Available on crate feature NSURL only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLConnection

Available on crate feature NSURLConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLCredential

Available on crate feature NSURLCredential only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLCredentialStorage

Available on crate feature NSURLCredentialStorage only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLDownload

Available on crate feature NSURLDownload only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLHandle

Available on crate feature NSURLHandle only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLProtectionSpace

Available on crate feature NSURLProtectionSpace only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLProtocol

Available on crate feature NSURLProtocol only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLQueryItem

Available on crate feature NSURL only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLRequest

Available on crate feature NSURLRequest only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLResponse

Available on crate feature NSURLResponse only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSession

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionConfiguration

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionDataTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionDownloadTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionStreamTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionTaskMetrics

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionTaskTransactionMetrics

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionUploadTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionWebSocketMessage

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSURLSessionWebSocketTask

Available on crate feature NSURLSession only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUUID

Available on crate feature NSUUID only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUbiquitousKeyValueStore

Available on crate feature NSUbiquitousKeyValueStore only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnarchiver

Available on crate features NSArchiver and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUndoManager

Available on crate feature NSUndoManager only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUniqueIDSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnit

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitAcceleration

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitAngle

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitArea

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitConcentrationMass

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitConverter

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitConverterLinear

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitDispersion

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitDuration

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitElectricCharge

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitElectricCurrent

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitElectricPotentialDifference

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitElectricResistance

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitEnergy

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitFrequency

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitFuelEfficiency

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitIlluminance

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitInformationStorage

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitLength

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitMass

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitPower

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitPressure

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitSpeed

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitTemperature

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUnitVolume

Available on crate feature NSUnit only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserActivity

Available on crate feature NSUserActivity only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserAppleScriptTask

Available on crate feature NSUserScriptTask only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserAutomatorTask

Available on crate feature NSUserScriptTask only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserDefaults

Available on crate feature NSUserDefaults only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserNotification

Available on crate feature NSUserNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserNotificationAction

Available on crate feature NSUserNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserNotificationCenter

Available on crate feature NSUserNotification only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserScriptTask

Available on crate feature NSUserScriptTask only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSUserUnixTask

Available on crate feature NSUserScriptTask only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSValue

Available on crate feature NSValue only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSValueTransformer

Available on crate feature NSValueTransformer only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSWhoseSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLDTD

Available on crate features NSXMLDTD and NSXMLNode only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLDTDNode

Available on crate features NSXMLDTDNode and NSXMLNode only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLDocument

Available on crate features NSXMLDocument and NSXMLNode only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLElement

Available on crate features NSXMLElement and NSXMLNode only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLNode

Available on crate feature NSXMLNode only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXMLParser

Available on crate feature NSXMLParser only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXPCCoder

Available on crate features NSXPCConnection and NSCoder only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXPCConnection

Available on crate feature NSXPCConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXPCInterface

Available on crate feature NSXPCConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXPCListener

Available on crate feature NSXPCConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for NSXPCListenerEndpoint

Available on crate feature NSXPCConnection only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl ClassType for NSObject

Source§

const NAME: &'static str = "NSObject"

The name of the Objective-C class that this type represents. Read more
Source§

type Super = AnyObject

The superclass of this class. Read more
Source§

type ThreadKind = dyn AnyThread

Whether the type can be used from any thread, or from only the main thread. Read more
Source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
Source§

fn as_super(&self) -> &<NSObject as ClassType>::Super

Get an immutable reference to the superclass.
Source§

impl Debug for NSObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl DefaultRetained for NSObject

Source§

impl Deref for NSObject

Source§

type Target = AnyObject

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<NSObject as Deref>::Target

Dereferences the value.
Source§

impl Hash for NSObject

Hashing in Objective-C has the exact same requirement as in Rust:

If two objects are equal (as determined by the isEqual: method), they must have the same hash value.

See https://developer.apple.com/documentation/objectivec/1418956-nsobject/1418859-hash

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for NSObject

Source§

fn retain(&self) -> Retained<Self>
where Self: Sized,

Increment the reference count of the receiver. Read more
Source§

impl NSObjectNSArchiverCallback for NSObject

Available on crate feature NSArchiver only.
Source§

unsafe fn classForArchiver(&self) -> Option<&'static AnyClass>

Source§

unsafe fn replacementObjectForArchiver( &self, archiver: &NSArchiver, ) -> Option<Retained<AnyObject>>

👎Deprecated
Available on crate feature NSCoder only.
Source§

impl NSObjectNSClassDescriptionPrimitives for NSObject

Available on crate feature NSClassDescription only.
Source§

unsafe fn classDescription(&self) -> Retained<NSClassDescription>

Source§

unsafe fn attributeKeys(&self) -> Retained<NSArray<NSString>>

Available on crate features NSArray and NSString only.
Source§

unsafe fn toOneRelationshipKeys(&self) -> Retained<NSArray<NSString>>

Available on crate features NSArray and NSString only.
Source§

unsafe fn toManyRelationshipKeys(&self) -> Retained<NSArray<NSString>>

Available on crate features NSArray and NSString only.
Source§

unsafe fn inverseForRelationshipKey( &self, relationship_key: &NSString, ) -> Option<Retained<NSString>>

Available on crate feature NSString only.
Source§

impl NSObjectNSCoderMethods for NSObject

Available on crate feature NSObject only.
Source§

unsafe fn version() -> NSInteger

Source§

unsafe fn setVersion(a_version: NSInteger)

Source§

unsafe fn classForCoder(&self) -> &'static AnyClass

Source§

unsafe fn replacementObjectForCoder( &self, coder: &NSCoder, ) -> Option<Retained<AnyObject>>

Available on crate feature NSCoder only.
Source§

impl NSObjectNSComparisonMethods for NSObject

Available on crate feature NSScriptWhoseTests only.
Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Available on crate feature NSString only.
Source§

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

Available on crate feature NSString only.
Source§

impl NSObjectNSDelayedPerforming for NSObject

Available on crate feature NSRunLoop only.
Source§

unsafe fn performSelector_withObject_afterDelay_inModes( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, modes: &NSArray<NSRunLoopMode>, )

Available on crate features NSArray and NSDate and NSObjCRuntime and NSString only.
Source§

unsafe fn performSelector_withObject_afterDelay( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, )

Available on crate feature NSDate only.
Source§

unsafe fn cancelPreviousPerformRequestsWithTarget_selector_object( a_target: &AnyObject, a_selector: Sel, an_argument: Option<&AnyObject>, )

Source§

unsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject)

Source§

impl NSObjectNSDiscardableContentProxy for NSObject

Available on crate feature NSObject only.
Source§

impl NSObjectNSErrorRecoveryAttempting for NSObject

Available on crate feature NSError only.
Source§

unsafe fn attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo( &self, error: &NSError, recovery_option_index: NSUInteger, delegate: Option<&AnyObject>, did_recover_selector: Option<Sel>, context_info: *mut c_void, )

Source§

unsafe fn attemptRecoveryFromError_optionIndex( &self, error: &NSError, recovery_option_index: NSUInteger, ) -> bool

Source§

impl NSObjectNSKeyValueCoding for NSObject

Available on crate feature NSKeyValueCoding only.
Source§

unsafe fn accessInstanceVariablesDirectly() -> bool

Source§

unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString)

Available on crate feature NSString only.
Source§

unsafe fn validateValue_forKey_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key: &NSString, ) -> Result<(), Retained<NSError>>

Available on crate features NSError and NSString only.
Source§

unsafe fn mutableArrayValueForKey( &self, key: &NSString, ) -> Retained<NSMutableArray>

Available on crate features NSArray and NSString only.
Source§

unsafe fn mutableOrderedSetValueForKey( &self, key: &NSString, ) -> Retained<NSMutableOrderedSet>

Available on crate features NSOrderedSet and NSString only.
Source§

unsafe fn mutableSetValueForKey(&self, key: &NSString) -> Retained<NSMutableSet>

Available on crate features NSSet and NSString only.
Source§

unsafe fn valueForKeyPath( &self, key_path: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn setValue_forKeyPath( &self, value: Option<&AnyObject>, key_path: &NSString, )

Available on crate feature NSString only.
Source§

unsafe fn validateValue_forKeyPath_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key_path: &NSString, ) -> Result<(), Retained<NSError>>

Available on crate features NSError and NSString only.
Source§

unsafe fn mutableArrayValueForKeyPath( &self, key_path: &NSString, ) -> Retained<NSMutableArray>

Available on crate features NSArray and NSString only.
Source§

unsafe fn mutableOrderedSetValueForKeyPath( &self, key_path: &NSString, ) -> Retained<NSMutableOrderedSet>

Available on crate features NSOrderedSet and NSString only.
Source§

unsafe fn mutableSetValueForKeyPath( &self, key_path: &NSString, ) -> Retained<NSMutableSet>

Available on crate features NSSet and NSString only.
Source§

unsafe fn valueForUndefinedKey( &self, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn setValue_forUndefinedKey( &self, value: Option<&AnyObject>, key: &NSString, )

Available on crate feature NSString only.
Source§

unsafe fn setNilValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source§

unsafe fn dictionaryWithValuesForKeys( &self, keys: &NSArray<NSString>, ) -> Retained<NSDictionary<NSString, AnyObject>>

Available on crate features NSArray and NSDictionary and NSString only.
Source§

unsafe fn setValuesForKeysWithDictionary( &self, keyed_values: &NSDictionary<NSString, AnyObject>, )

Available on crate features NSDictionary and NSString only.
Source§

impl NSObjectNSKeyValueObserverNotification for NSObject

Available on crate feature NSKeyValueObserving only.
Source§

unsafe fn willChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source§

unsafe fn didChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source§

unsafe fn willChange_valuesAtIndexes_forKey( &self, change_kind: NSKeyValueChange, indexes: &NSIndexSet, key: &NSString, )

Available on crate features NSIndexSet and NSString only.
Source§

unsafe fn didChange_valuesAtIndexes_forKey( &self, change_kind: NSKeyValueChange, indexes: &NSIndexSet, key: &NSString, )

Available on crate features NSIndexSet and NSString only.
Source§

unsafe fn willChangeValueForKey_withSetMutation_usingObjects( &self, key: &NSString, mutation_kind: NSKeyValueSetMutationKind, objects: &NSSet, )

Available on crate features NSSet and NSString only.
Source§

unsafe fn didChangeValueForKey_withSetMutation_usingObjects( &self, key: &NSString, mutation_kind: NSKeyValueSetMutationKind, objects: &NSSet, )

Available on crate features NSSet and NSString only.
Source§

impl NSObjectNSKeyValueObserverRegistration for NSObject

Available on crate feature NSKeyValueObserving only.
Source§

unsafe fn addObserver_forKeyPath_options_context( &self, observer: &NSObject, key_path: &NSString, options: NSKeyValueObservingOptions, context: *mut c_void, )

Available on crate feature NSString only.
Source§

unsafe fn removeObserver_forKeyPath_context( &self, observer: &NSObject, key_path: &NSString, context: *mut c_void, )

Available on crate feature NSString only.
Source§

unsafe fn removeObserver_forKeyPath( &self, observer: &NSObject, key_path: &NSString, )

Available on crate feature NSString only.
Source§

impl NSObjectNSKeyValueObserving for NSObject

Available on crate feature NSKeyValueObserving only.
Source§

unsafe fn observeValueForKeyPath_ofObject_change_context( &self, key_path: Option<&NSString>, object: Option<&AnyObject>, change: Option<&NSDictionary<NSKeyValueChangeKey, AnyObject>>, context: *mut c_void, )

Available on crate features NSDictionary and NSString only.
Source§

impl NSObjectNSKeyValueObservingCustomization for NSObject

Available on crate feature NSKeyValueObserving only.
Source§

unsafe fn keyPathsForValuesAffectingValueForKey( key: &NSString, ) -> Retained<NSSet<NSString>>

Available on crate features NSSet and NSString only.
Source§

unsafe fn automaticallyNotifiesObserversForKey(key: &NSString) -> bool

Available on crate feature NSString only.
Source§

unsafe fn observationInfo(&self) -> *mut c_void

Source§

unsafe fn setObservationInfo(&self, observation_info: *mut c_void)

Setter for observationInfo.
Source§

impl NSObjectNSKeyValueSharedObserverRegistration for NSObject

Available on crate feature NSKeyValueSharedObservers only.
Source§

unsafe fn setSharedObservers( &self, shared_observers: Option<&NSKeyValueSharedObserversSnapshot>, )

Register shared observations. Read more
Source§

impl NSObjectNSKeyedArchiverObjectSubstitution for NSObject

Available on crate feature NSKeyedArchiver only.
Source§

unsafe fn classForKeyedArchiver(&self) -> Option<&'static AnyClass>

Source§

unsafe fn replacementObjectForKeyedArchiver( &self, archiver: &NSKeyedArchiver, ) -> Option<Retained<AnyObject>>

Available on crate feature NSCoder only.
Source§

unsafe fn classFallbacksForKeyedArchiver() -> Retained<NSArray<NSString>>

Available on crate features NSArray and NSString only.
Source§

impl NSObjectNSKeyedUnarchiverObjectSubstitution for NSObject

Available on crate feature NSKeyedArchiver only.
Source§

impl NSObjectNSScriptClassDescription for NSObject

Available on crate feature NSScriptClassDescription only.
Source§

unsafe fn classCode(&self) -> u32

Source§

unsafe fn className(&self) -> Retained<NSString>

Available on crate feature NSString only.
Source§

impl NSObjectNSScriptKeyValueCoding for NSObject

Available on crate feature NSScriptKeyValueCoding only.
Source§

unsafe fn valueAtIndex_inPropertyWithKey( &self, index: NSUInteger, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn valueWithName_inPropertyWithKey( &self, name: &NSString, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn valueWithUniqueID_inPropertyWithKey( &self, unique_id: &AnyObject, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

unsafe fn insertValue_atIndex_inPropertyWithKey( &self, value: &AnyObject, index: NSUInteger, key: &NSString, )

Available on crate feature NSString only.
Source§

unsafe fn removeValueAtIndex_fromPropertyWithKey( &self, index: NSUInteger, key: &NSString, )

Available on crate feature NSString only.
Source§

unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue( &self, index: NSUInteger, key: &NSString, value: &AnyObject, )

Available on crate feature NSString only.
Source§

unsafe fn insertValue_inPropertyWithKey( &self, value: &AnyObject, key: &NSString, )

Available on crate feature NSString only.
Source§

unsafe fn coerceValue_forKey( &self, value: Option<&AnyObject>, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source§

impl NSObjectNSScriptObjectSpecifiers for NSObject

Available on crate feature NSScriptObjectSpecifiers only.
Source§

unsafe fn objectSpecifier(&self) -> Option<Retained<NSScriptObjectSpecifier>>

Source§

unsafe fn indicesOfObjectsByEvaluatingObjectSpecifier( &self, specifier: &NSScriptObjectSpecifier, ) -> Option<Retained<NSArray<NSNumber>>>

Available on crate features NSArray and NSValue only.
Source§

impl NSObjectNSScripting for NSObject

Available on crate feature NSObjectScripting only.
Source§

unsafe fn scriptingValueForSpecifier( &self, object_specifier: &NSScriptObjectSpecifier, ) -> Option<Retained<AnyObject>>

Available on crate feature NSScriptObjectSpecifiers only.
Source§

unsafe fn scriptingProperties( &self, ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>

Available on crate features NSDictionary and NSString only.
Source§

unsafe fn setScriptingProperties( &self, scripting_properties: Option<&NSDictionary<NSString, AnyObject>>, )

Available on crate features NSDictionary and NSString only.
Source§

unsafe fn copyScriptingValue_forKey_withProperties( &self, value: &AnyObject, key: &NSString, properties: &NSDictionary<NSString, AnyObject>, ) -> Option<Retained<AnyObject>>

Available on crate features NSDictionary and NSString only.
Source§

unsafe fn newScriptingObjectOfClass_forValueForKey_withContentsValue_properties( &self, object_class: &AnyClass, key: &NSString, contents_value: Option<&AnyObject>, properties: &NSDictionary<NSString, AnyObject>, ) -> Option<Retained<AnyObject>>

Available on crate features NSDictionary and NSString only.
Source§

impl NSObjectNSScriptingComparisonMethods for NSObject

Available on crate feature NSScriptWhoseTests only.
Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl NSObjectNSThreadPerformAdditions for NSObject

Available on crate feature NSThread only.
Source§

unsafe fn performSelectorOnMainThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )

Available on crate features NSArray and NSString only.
Source§

unsafe fn performSelectorOnMainThread_withObject_waitUntilDone( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, )

Source§

unsafe fn performSelector_onThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, thr: &NSThread, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )

Available on crate features NSArray and NSString only.
Source§

unsafe fn performSelector_onThread_withObject_waitUntilDone( &self, a_selector: Sel, thr: &NSThread, arg: Option<&AnyObject>, wait: bool, )

Source§

unsafe fn performSelectorInBackground_withObject( &self, a_selector: Sel, arg: Option<&AnyObject>, )

Source§

impl NSObjectProtocol for NSObject

Source§

fn isEqual(&self, other: Option<&AnyObject>) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
Source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
Source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
Source§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

👎Deprecated: use isKindOfClass directly, or cast your objects with AnyObject::downcast_ref
Check if the object is an instance of the class type, or one of its subclasses. Read more
Source§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
Source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
Source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
Source§

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
Source§

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
Source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
Source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
Source§

impl PartialEq for NSObject

Objective-C equality has approximately the same semantics as Rust equality (although less aptly specified).

At the very least, equality is expected to be symmetric and transitive, and that’s about the best we can do.

See also https://nshipster.com/equality/

Source§

fn eq(&self, other: &NSObject) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RefEncode for NSObject

Source§

const ENCODING_REF: Encoding = <AnyObject as crate::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
Source§

impl DowncastTarget for NSObject

Source§

impl Eq for NSObject

Most types’ equality is reflexive.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T> AnyThread for T
where T: ClassType<ThreadKind = dyn AnyThread + 'a> + ?Sized,

Source§

fn alloc() -> Allocated<Self>
where Self: Sized + ClassType,

Allocate a new instance of the class. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,