pub trait INSObject {
// Required methods
fn new() -> Self;
fn to_id(self) -> id;
unsafe fn from_id(obj: id) -> Self;
fn description(&self) -> NSString;
fn debug_description(&self) -> NSString;
fn retain(&self) -> Self;
}Expand description
The group of methods that are fundamental to all Objective-C objects.
Required Methods§
Sourcefn new() -> Self
fn new() -> Self
Implemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated.
Sourcefn description(&self) -> NSString
fn description(&self) -> NSString
Returns a string that represents the contents of the receiving class.
Sourcefn debug_description(&self) -> NSString
fn debug_description(&self) -> NSString
Returns a string that represents the contents of the receiving class.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".