[]Struct oxygengine::core::id::ID

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

Typed Unique Identifier (uuidv4).

Implementations

impl<T> ID<T>

pub fn new() -> ID<T>

Creates new identifier.

pub fn from_bytes(bytes: [u8; 16]) -> ID<T>

Creates new identifier from raw bytes.

pub fn uuid(&self) -> Uuid

Gets underlying UUID object.

Trait Implementations

impl<T> Clone for ID<T>

impl<T> Copy for ID<T>

impl<T> Debug for ID<T>

impl<T> Default for ID<T>

impl<'de, T> Deserialize<'de> for ID<T>

impl<T> Eq for ID<T>

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

impl<T> FromStr for ID<T>

type Err = String

The associated error which can be returned from parsing.

impl<T> Hash for ID<T>

impl<T> Into<IDDef> for ID<T>

impl<T> Ord for ID<T>

impl<T> PartialEq<ID<T>> for ID<T>

impl<T> PartialOrd<ID<T>> for ID<T>

impl<T> Serialize for ID<T>

impl<T> ToString for ID<T>

impl<T> TryFrom<IDDef> for ID<T>

type Error = String

The type returned in the event of a conversion error.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

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

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

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

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

impl<T> Resource for T where
    T: Any, 

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

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> TryDefault for T where
    T: Default

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>,