pub struct Sneaking;Expand description
Marker component for sneaking state.
Added when a player starts sneaking, removed when they stop. Used by the block interaction system to determine whether right-click should interact with the clicked block or place a block instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sneaking
impl RefUnwindSafe for Sneaking
impl Send for Sneaking
impl Sync for Sneaking
impl Unpin for Sneaking
impl UnsafeUnpin for Sneaking
impl UnwindSafe for Sneaking
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