pub struct DroppedItem {
pub slot: Slot,
}Expand description
A dropped item on the ground.
Entities with this component represent items that can be picked up
by players. Combined with Position, Velocity, BoundingBox,
and Lifetime to create a full dropped item entity.
Fields§
§slot: SlotThe item stack (ID, count, component data).
Trait Implementations§
Source§impl Clone for DroppedItem
impl Clone for DroppedItem
Source§fn clone(&self) -> DroppedItem
fn clone(&self) -> DroppedItem
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 moreSource§impl Debug for DroppedItem
impl Debug for DroppedItem
impl Component for DroppedItem
Auto Trait Implementations§
impl Freeze for DroppedItem
impl RefUnwindSafe for DroppedItem
impl Send for DroppedItem
impl Sync for DroppedItem
impl Unpin for DroppedItem
impl UnsafeUnpin for DroppedItem
impl UnwindSafe for DroppedItem
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