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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Returns the Objective-C class that can be used to instantiate a new instance of Self. Read more

The resulting type after dereferencing.

Dereferences the value.

Increments the object’s retain count and returns a smart pointer that automatically calls release on Drop. Read more

Decrements the object’s retain count. Read more

Casts self into a type-erased Objective-C object.

Returns the class that this object is an instance of.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.