pub enum InventoryOperationMode {
MouseClick,
ShiftClick,
NumberClick,
MiddleClick,
DropClick,
Drag,
DoubleClick,
}
Variants§
Implementations§
Source§impl InventoryOperationMode
impl InventoryOperationMode
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for InventoryOperationMode
impl Clone for InventoryOperationMode
Source§fn clone(&self) -> InventoryOperationMode
fn clone(&self) -> InventoryOperationMode
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 InventoryOperationMode
impl Debug for InventoryOperationMode
Source§impl Deserialize for InventoryOperationMode
impl Deserialize for InventoryOperationMode
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for InventoryOperationMode
impl PartialEq for InventoryOperationMode
Source§impl Serialize for InventoryOperationMode
impl Serialize for InventoryOperationMode
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for InventoryOperationMode
Auto Trait Implementations§
impl Freeze for InventoryOperationMode
impl RefUnwindSafe for InventoryOperationMode
impl Send for InventoryOperationMode
impl Sync for InventoryOperationMode
impl Unpin for InventoryOperationMode
impl UnwindSafe for InventoryOperationMode
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