Struct ItemCapabilityKey
pub struct ItemCapabilityKey<T>where
T: 'static + ?Sized,{
pub name: &'static str,
/* private fields */
}Expand description
An item capability: its name, the handler trait T it answers with, and the game’s own
provider, if the game has one.
Fields§
§name: &'static strThe capability’s name.
Implementations§
§impl<T> ItemCapabilityKey<T>where
T: 'static + ?Sized,
impl<T> ItemCapabilityKey<T>where
T: 'static + ?Sized,
pub const fn new(name: &'static str) -> ItemCapabilityKey<T>
pub const fn new(name: &'static str) -> ItemCapabilityKey<T>
A mod’s own item capability, answered only by the parts registered for it.
Auto Trait Implementations§
impl<T> Freeze for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> RefUnwindSafe for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> Send for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> Sync for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> Unpin for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> UnsafeUnpin for ItemCapabilityKey<T>where
T: ?Sized,
impl<T> UnwindSafe for ItemCapabilityKey<T>where
T: ?Sized,
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