pub enum UpdateStructureBlockRotation {
NoRotation,
Clockwise90,
Clockwise180,
CounterClockwise90,
}
Variants§
Implementations§
Source§impl UpdateStructureBlockRotation
impl UpdateStructureBlockRotation
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 UpdateStructureBlockRotation
impl Clone for UpdateStructureBlockRotation
Source§fn clone(&self) -> UpdateStructureBlockRotation
fn clone(&self) -> UpdateStructureBlockRotation
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 UpdateStructureBlockRotation
impl Debug for UpdateStructureBlockRotation
Source§impl Deserialize for UpdateStructureBlockRotation
impl Deserialize for UpdateStructureBlockRotation
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for UpdateStructureBlockRotation
impl PartialEq for UpdateStructureBlockRotation
Source§fn eq(&self, other: &UpdateStructureBlockRotation) -> bool
fn eq(&self, other: &UpdateStructureBlockRotation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for UpdateStructureBlockRotation
impl Serialize for UpdateStructureBlockRotation
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for UpdateStructureBlockRotation
Auto Trait Implementations§
impl Freeze for UpdateStructureBlockRotation
impl RefUnwindSafe for UpdateStructureBlockRotation
impl Send for UpdateStructureBlockRotation
impl Sync for UpdateStructureBlockRotation
impl Unpin for UpdateStructureBlockRotation
impl UnwindSafe for UpdateStructureBlockRotation
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