Enum shipyard::StorageId[][src]

pub enum StorageId {
    TypeId(TypeId),
    Custom(u64),
}

Id of a storage, can be a TypeId or u64.

Variants

TypeId(TypeId)

Identify a Rust type known at compile time

Custom(u64)

Identify a type only known at runtime

Implementations

impl StorageId[src]

pub fn of<T: 'static>() -> Self[src]

Returns T’s StorageId.

Trait Implementations

impl Clone for StorageId[src]

impl Copy for StorageId[src]

impl Debug for StorageId[src]

impl Default for StorageId[src]

impl Eq for StorageId[src]

impl From<TypeId> for StorageId[src]

impl From<TypeId> for StorageId[src]

impl From<u64> for StorageId[src]

impl Hash for StorageId[src]

impl Ord for StorageId[src]

impl PartialEq<StorageId> for StorageId[src]

impl PartialEq<TypeId> for StorageId[src]

impl PartialOrd<StorageId> for StorageId[src]

impl PartialOrd<TypeId> for StorageId[src]

impl StructuralEq for StorageId[src]

impl StructuralPartialEq for StorageId[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> CallHasher for T where
    T: Hash

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.