[][src]Struct oxygengine_core::id::ID

#[repr(C)]
pub struct ID<T> { /* fields omitted */ }

Universal Identifier (uuidv4).

Methods

impl<T> ID<T>[src]

pub fn new() -> Self[src]

Creates new identifier.

pub fn from_bytes(bytes: [u8; 16]) -> Self[src]

Creates new identifier from raw bytes.

pub fn uuid(&self) -> Uuid[src]

Gets underlying UUID object.

Trait Implementations

impl<T: Clone> Clone for ID<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T> Ord for ID<T>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<T> Default for ID<T>[src]

impl From<ID<()>> for AssetVariant[src]

impl<T> PartialOrd<ID<T>> for ID<T>[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T> ToString for ID<T>[src]

impl<T> PartialEq<ID<T>> for ID<T>[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<T> Copy for ID<T> where
    T: Clone
[src]

impl<T> Eq for ID<T>[src]

impl<T> Debug for ID<T>[src]

impl<T> Hash for ID<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

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

impl<T> FromStr for ID<T>[src]

type Err = String

The associated error which can be returned from parsing.

impl<T> Serialize for ID<T>[src]

impl<'de, T> Deserialize<'de> for ID<T>[src]

Auto Trait Implementations

impl<T> Sync for ID<T> where
    T: Sync

impl<T> Send for ID<T> where
    T: Send

impl<T> Unpin for ID<T> where
    T: Unpin

impl<T> RefUnwindSafe for ID<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for ID<T> where
    T: UnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> TryDefault for T where
    T: Default
[src]

fn unwrap_default() -> Self[src]

Calls try_default and panics on an error case.

impl<T> Any for T where
    T: Any

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> Erased for T