Struct gear_objects::ComponentId
source · pub struct ComponentId { /* private fields */ }
Expand description
Used to identify components.
Implementations§
source§impl ComponentId
impl ComponentId
pub fn new(tag: &str, value: u32) -> ComponentId
Trait Implementations§
source§impl Clone for ComponentId
impl Clone for ComponentId
source§fn clone(&self) -> ComponentId
fn clone(&self) -> ComponentId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentId
impl Debug for ComponentId
source§impl Display for ComponentId
impl Display for ComponentId
source§impl Hash for ComponentId
impl Hash for ComponentId
source§impl Ord for ComponentId
impl Ord for ComponentId
source§fn cmp(&self, other: &ComponentId) -> Ordering
fn cmp(&self, other: &ComponentId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ComponentId
impl PartialEq for ComponentId
source§fn eq(&self, other: &ComponentId) -> bool
fn eq(&self, other: &ComponentId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ComponentId
impl PartialOrd for ComponentId
source§fn partial_cmp(&self, other: &ComponentId) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ComponentId
impl Eq for ComponentId
impl StructuralPartialEq for ComponentId
Auto Trait Implementations§
impl RefUnwindSafe for ComponentId
impl Send for ComponentId
impl Sync for ComponentId
impl Unpin for ComponentId
impl UnwindSafe for ComponentId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more