[][src]Struct oxygengine_core::ecs::shred::ResourceId

pub struct ResourceId(pub TypeId);

The id of a Resource, which is a tuple struct with a type id and an additional resource id (represented with a usize).

The default resource id is 0.

Methods

impl ResourceId[src]

pub fn new<T>() -> ResourceId where
    T: Resource
[src]

Creates a new resource id from a given type.

Trait Implementations

impl Clone for ResourceId[src]

impl Copy for ResourceId[src]

impl Debug for ResourceId[src]

impl Eq for ResourceId[src]

impl Hash for ResourceId[src]

impl Ord for ResourceId[src]

impl PartialEq<ResourceId> for ResourceId[src]

impl PartialOrd<ResourceId> for ResourceId[src]

impl StructuralEq for ResourceId[src]

impl StructuralPartialEq for ResourceId[src]

Auto Trait Implementations

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> Erased for T

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

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 + Send + Sync
[src]

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