Skip to main content

INSUUID

Trait INSUUID 

Source
pub trait INSUUID: PNSObject {
    // Provided methods
    fn m_uuid() -> Self
       where Self: Sized + FromId { ... }
    fn m_init(&mut self) -> Self
       where Self: Sized + FromId { ... }
    fn m_init_with_uuid_string(&mut self, string: NSString) -> Self
       where Self: Sized + FromId { ... }
    fn m_init_with_uuid_bytes(&mut self, bytes: *const c_uchar) -> Self
       where Self: Sized + FromId { ... }
    fn m_get_uuid_bytes(&self, uuid: *mut c_uchar) { ... }
    fn p_uuid_string(&self) -> NSString { ... }
    fn m_compare(&self, other_uuid: NSUUID) -> NSComparisonResult { ... }
}
Expand description

A trait containing all the methods for NSUUID

Provided Methods§

Source

fn m_uuid() -> Self
where Self: Sized + FromId,

Create and returns a new UUID with RFC 4122 version 4 random bytes.

Source

fn m_init(&mut self) -> Self
where Self: Sized + FromId,

Initializes a new UUID with RFC 4122 version 4 random bytes.

Source

fn m_init_with_uuid_string(&mut self, string: NSString) -> Self
where Self: Sized + FromId,

Initializes a new UUID with the formatted string.

Source

fn m_init_with_uuid_bytes(&mut self, bytes: *const c_uchar) -> Self
where Self: Sized + FromId,

Initializes a new UUID with the given bytes.

§Arguments
  • bytes - Raw UUID bytes to use to create the UUID.
§Returns

A new UUID object.

Source

fn m_get_uuid_bytes(&self, uuid: *mut c_uchar)

Returns the UUID as bytes.

§Arguments
  • uuid - The value of uuid represented as raw bytes.
Source

fn p_uuid_string(&self) -> NSString

The UUID as a string.

Source

fn m_compare(&self, other_uuid: NSUUID) -> NSComparisonResult

Compares NSUUID with another

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§