Struct wasm_compose::graph::ComponentId
source · pub struct ComponentId(pub usize);
Expand description
Represents an identifier of a component in a composition graph.
Tuple Fields§
§0: usize
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 From<usize> for ComponentId
impl From<usize> 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 StructuralEq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.