pub struct UseItem { /* private fields */ }Implementations§
Source§impl UseItem
impl UseItem
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
Deserializes a Read type into a packet. You usually won’t need to use this.
Sourcepub fn to_u8(&self) -> Result<Vec<u8>>
pub fn to_u8(&self) -> Result<Vec<u8>>
Serializes the packet into Vec
pub fn new(hand: i32) -> ServerboundPacket
Trait Implementations§
impl StructuralPartialEq for UseItem
Auto Trait Implementations§
impl Freeze for UseItem
impl RefUnwindSafe for UseItem
impl Send for UseItem
impl Sync for UseItem
impl Unpin for UseItem
impl UnsafeUnpin for UseItem
impl UnwindSafe for UseItem
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