Struct yyid::YYID [] [src]

pub struct YYID { /* fields omitted */ }

Methods

impl YYID
[src]

Creates a new random YYID

Return an array of 16 octets containing the YYID data

Returns a string of hexadecimal digits, separated into groups with a hyphen.

Example: 02e7f0f6-067e-8c92-b25c-12c9180540a9

Returns the YYID as a string of 32 hexadecimal digits

Example: 2ff0b694960e88a4693a66cff98fc56c

Returns the YYID formatted as a full URN string

This is the same as the hyphenated format, but with the "urn:yyid:" prefix.

Example: urn:yyid:05f7d6d3-1727-ce2d-6cf2-3b73ad48ff73

Trait Implementations

impl Copy for YYID
[src]

impl Clone for YYID
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for YYID
[src]

Convert the YYID to a hexadecimal-based string representation wrapped in YYID()

Formats the value using the given formatter.

impl Display for YYID
[src]

Convert the YYID to a hexadecimal-based string representation

Formats the value using the given formatter. Read more

impl PartialEq for YYID
[src]

Test two YYIDs for equality

YYIDs are equal only when they are byte-for-byte identical

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for YYID
[src]

impl Rand for YYID
[src]

Generates a random instance of YYID (V4 conformant)

Generates a random instance of this type using the specified source of randomness. Read more

impl Hash for YYID
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more