[][src]Struct af_lib::prelude::af_core::util::Uuid

pub struct Uuid(_);

A universally-unique identifier.

Implementations

impl Uuid[src]

pub const fn nil() -> Uuid[src]

Returns a "nil" UUID.

pub fn is_nil(&self) -> bool[src]

Returns true if the UUID is the "nil" value.

pub fn new() -> Uuid[src]

Returns a new, random UUID.

pub fn as_bytes(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns a slice containing the bytes of the UUID.

pub fn to_u128(&self) -> u128[src]

Converts the UUID to a u128.

Trait Implementations

impl Clone for Uuid[src]

impl Copy for Uuid[src]

impl Debug for Uuid[src]

impl Default for Uuid[src]

impl<'de> Deserialize<'de> for Uuid[src]

impl Display for Uuid[src]

impl Eq for Uuid[src]

impl From<Uuid> for Uuid[src]

impl<'a> FromSql<'a> for Uuid[src]

impl FromStr for Uuid[src]

type Err = <Uuid as FromStr>::Err

The associated error which can be returned from parsing.

impl Hash for Uuid[src]

impl LowerHex for Uuid[src]

impl Ord for Uuid[src]

impl PartialEq<Uuid> for Uuid[src]

impl PartialOrd<Uuid> for Uuid[src]

impl Random for Uuid[src]

impl Serialize for Uuid[src]

impl StructuralEq for Uuid[src]

impl StructuralPartialEq for Uuid[src]

impl ToSql for Uuid[src]

impl UpperHex for Uuid[src]

Auto Trait Implementations

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> BorrowToSql for T where
    T: ToSql
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

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

impl<T> FromSqlOwned for T where
    T: for<'a> FromSql<'a>, 
[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,