[−][src]Struct no_proto::pointer::uuid::NP_UUID
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) -> NP_UUID
[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) -> NP_UUID where
F: Fn(u8, u8) -> u8,
[src]
F: Fn(u8, u8) -> u8,
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 Debug for NP_UUID
[src]
impl Default for NP_UUID
[src]
impl Eq 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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,