[−][src]Struct uuid64rs::Uuid4
Minimum structure for implementing core trait.
It implements a lot of From and TryFrom traits to allow easy interfacing with most any code and easy conversions between formats.
Implementations
impl Uuid4
[src]
pub fn new(rng: Option<Box<dyn RngCore>>) -> Self
[src]
Construct a new random instance.
Arguments
rng
- Optional random number generator to save startup overhead when generating lots of new UUIDs or other custom needs.
Trait Implementations
impl Binary for Uuid4
[src]
impl Debug for Uuid4
[src]
impl Default for Uuid4
[src]
impl<'de> Deserialize<'de> for Uuid4
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Uuid4
[src]
impl<'_> From<&'_ [u8; 16]> for Uuid4
[src]
impl From<u128> for Uuid4
[src]
impl LowerHex for Uuid4
[src]
impl Ord for Uuid4
[src]
pub fn cmp(&self, other: &Uuid4) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Uuid4> for Uuid4
[src]
impl PartialOrd<Uuid4> for Uuid4
[src]
pub fn partial_cmp(&self, other: &Uuid4) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Uuid4) -> bool
[src]
pub fn le(&self, other: &Uuid4) -> bool
[src]
pub fn gt(&self, other: &Uuid4) -> bool
[src]
pub fn ge(&self, other: &Uuid4) -> bool
[src]
impl StructuralEq for Uuid4
[src]
impl StructuralPartialEq for Uuid4
[src]
impl<'_> TryFrom<&'_ [u8; 22]> for Uuid4
[src]
type Error = U64Error
The type returned in the event of a conversion error.
pub fn try_from(value: &[u8; 22]) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ [u8; 32]> for Uuid4
[src]
type Error = U64Error
The type returned in the event of a conversion error.
pub fn try_from(value: &[u8; 32]) -> Result<Self, Self::Error>
[src]
Converts an utf-8 hexadecimal byte array into a uuid4 value.
NOTE: This function does NOT do any additional validating above what Rust needs to parse the bytes as a hexadecimal string.
impl<'_> TryFrom<&'_ [u8; 36]> for Uuid4
[src]
type Error = U64Error
The type returned in the event of a conversion error.
pub fn try_from(value: &[u8; 36]) -> Result<Self, Self::Error>
[src]
Converts an utf-8 hexadecimal byte array into a uuid4 value.
the first 4 '-' characters found in the value
will be removed.
NOTE: This function does NOT do any additional validating above what Rust needs to parse the bytes as a hexadecimal string.
impl<'_> TryFrom<&'_ [u8]> for Uuid4
[src]
type Error = U64Error
The type returned in the event of a conversion error.
pub fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ str> for Uuid4
[src]
type Error = U64Error
The type returned in the event of a conversion error.
pub fn try_from(value: &str) -> Result<Self, Self::Error>
[src]
impl UpperHex for Uuid4
[src]
impl Uuid for Uuid4
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uuid4
[src]
impl Send for Uuid4
[src]
impl Sync for Uuid4
[src]
impl Unpin for Uuid4
[src]
impl UnwindSafe for Uuid4
[src]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,