[][src]Struct no_proto::pointer::uuid::NP_UUID

#[repr(C)]pub struct NP_UUID {
    pub value: [u8; 16],
}

Holds UUID which is good for random keys.

Check out documentation here.

Fields

value: [u8; 16]

The random bytes for this UUID

Implementations

impl NP_UUID[src]

pub fn generate(random_seed: u32) -> Self[src]

Generate a new UUID with a given random seed. You should attempt to provide a seed with as much randomness as possible.

pub fn generate_with_rand<F>(random_fn: F) -> Self where
    F: Fn(u8, u8) -> u8, 
[src]

Generates a UUID with a provided random number generator. This is the preferrable way to generate a ULID, if you can provide a better RNG function than the psudorandom one built into this library, you should.

pub fn to_string(&self) -> String[src]

Generates a stringified version of the UUID.

Trait Implementations

impl Clone for NP_UUID[src]

impl Debug for NP_UUID[src]

impl Default for NP_UUID[src]

impl Eq for NP_UUID[src]

impl<'_> NP_Scalar for &'_ NP_UUID[src]

impl PartialEq<NP_UUID> for NP_UUID[src]

impl StructuralEq for NP_UUID[src]

impl StructuralPartialEq for NP_UUID[src]

Auto Trait Implementations

impl Send for NP_UUID

impl Sync for NP_UUID

impl Unpin for NP_UUID

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.