Struct amethyst::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
impl ResourceIdpub fn new<T>() -> ResourceId where
T: Resource,
pub fn new<T>() -> ResourceId where
T: Resource, Creates a new resource id from a given type.
Trait Implementations
impl Ord for ResourceId
impl Ord for ResourceIdfn cmp(&self, other: &ResourceId) -> Ordering
fn cmp(&self, other: &ResourceId) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd<ResourceId> for ResourceId
impl PartialOrd<ResourceId> for ResourceIdfn partial_cmp(&self, other: &ResourceId) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceId) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ResourceId) -> bool
fn lt(&self, other: &ResourceId) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ResourceId) -> bool
fn le(&self, other: &ResourceId) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ResourceId) -> bool
fn gt(&self, other: &ResourceId) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ResourceId) -> bool
fn ge(&self, other: &ResourceId) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for ResourceId
impl Hash for ResourceIdfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for ResourceId
impl Copy for ResourceIdimpl Eq for ResourceId
impl Eq for ResourceIdimpl PartialEq<ResourceId> for ResourceId
impl PartialEq<ResourceId> for ResourceIdfn eq(&self, other: &ResourceId) -> bool
fn eq(&self, other: &ResourceId) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ResourceId) -> bool
fn ne(&self, other: &ResourceId) -> boolThis method tests for !=.
impl Clone for ResourceId
impl Clone for ResourceIdfn clone(&self) -> ResourceId
fn clone(&self) -> ResourceIdReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for ResourceId
impl Debug for ResourceIdAuto Trait Implementations
impl Send for ResourceId
impl Send for ResourceIdimpl Sync for ResourceId
impl Sync for ResourceId