Struct ComponentId
pub struct ComponentId {
pub name: String,
pub version: String,
pub component_type: ComponentType,
}Expand description
Component identifier
Fields§
§name: StringComponent name
version: StringComponent version
component_type: ComponentTypeComponent type
Implementations§
§impl ComponentId
impl ComponentId
pub fn new(
name: impl Into<String>,
version: impl Into<String>,
component_type: ComponentType,
) -> ComponentId
pub fn new( name: impl Into<String>, version: impl Into<String>, component_type: ComponentType, ) -> ComponentId
Create a new component identifier
Trait Implementations§
§impl Clone for ComponentId
impl Clone for ComponentId
§fn clone(&self) -> ComponentId
fn clone(&self) -> ComponentId
Returns a duplicate 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 more§impl Debug for ComponentId
impl Debug for ComponentId
§impl Hash for ComponentId
impl Hash for ComponentId
§impl PartialEq for ComponentId
impl PartialEq for ComponentId
impl Eq for ComponentId
impl StructuralPartialEq for ComponentId
Auto Trait Implementations§
impl Freeze for ComponentId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.