pub struct Key {
pub name: Cow<'static, str>,
pub ty: Type,
}
Expand description
Represents a unique key for a provider.
Fields§
§name: Cow<'static, str>
The name of the provider.
ty: Type
The type of the provider generic.
Trait Implementations§
source§impl Ord for Key
impl Ord for Key
source§impl PartialEq for Key
impl PartialEq for Key
source§impl PartialOrd for Key
impl PartialOrd for Key
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 Eq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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