Struct fruity__bbqsrc::foundation::NSValue [−][src]
#[repr(C)]pub struct NSValue(_);
Expand description
A simple container for a single C or Objective-C data item.
See documentation.
Implementations
Arbitrary values.
Creates a value object containing the specified value, interpreted with the specified Objective-C type.
See documentation.
Returns a pointer to a C string containing the Objective-C type of this object’s value.
See documentation.
Returns objc_type
as a C string reference.
Writes size
bytes of the value to a pointer.
See documentation.
Exception Handling
If size
is the wrong number of bytes, an NSInvalidArgumentException
is thrown.
Writes the value to a slice buffer.
Exception Handling
If value
is the wrong number of bytes, an NSInvalidArgumentException
is thrown.
Returns the value as some generic type.
Exception Handling
If the type is the wrong size, an NSInvalidArgumentException
is
thrown.
Safety
The value must have a valid memory representation for the return type.
Pointer values.
Creates a value object containing the specified pointer.
See documentation.
Returns the value as an untyped pointer.
The value as a pointer to void. If the value object was not created to hold a pointer-sized data item, the result is undefined.
See documentation.
Creates a value object containing the specified pointer.
This method is useful if you want to add an object to a collection but don’t want the collection to create a strong reference to it.
See documentation.
Returns the value as a non-retained pointer to an object.
If the value was not created to hold a pointer-sized data item, the result is undefined.
See documentation.
Range values.
Creates a new value object containing the specified range.
See documentation.
Returns the value as an NSRange
.
See documentation.
Foundation geometry values.
Creates a new value object containing the specified point.
See documentation.
Returns the value as an NSPoint
.
See documentation.
Creates a new value object containing the specified size.
See documentation.
Returns the value as an NSSize
.
See documentation.
Creates a new value object containing the specified rectangle.
See documentation.
Returns the value as an NSRect
.
See documentation.
Creates a new value object containing the specified edge insets.
See documentation.
Returns the value as an NSEdgeInsets
.
See documentation.
Methods from Deref<Target = NSObject<'static>>
Returns this object’s reference count.
This method is only useful for debugging certain objects.
See documentation.
Returns true
if this object implements or inherits a method that can
respond to a specified message.
See documentation.
Returns true
if this object is an instance or subclass of class
.
See documentation
Returns true
if this object is an instance of class
.
See documentation
Returns an integer that can be used as a table address in a hash table structure.
See documentation.
Returns a copy of this object using
NSCopying
.
See documentation.
Returns a copy of this object using
NSMutableCopying
.
See documentation.
Returns a string that describes the contents of this object.
See documentation
Returns a string that describes the contents of the receiver for presentation in the debugger.
See documentation
Trait Implementations
Casts self
into a type-erased Objective-C object.
Auto Trait Implementations
impl RefUnwindSafe for NSValue
impl UnwindSafe for NSValue