pub enum UpdateStructureBlockAction {
UpdateData,
SaveStructure,
LoadStructure,
DetectSize,
}
Variants§
Implementations§
Source§impl UpdateStructureBlockAction
impl UpdateStructureBlockAction
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 UpdateStructureBlockAction
impl Clone for UpdateStructureBlockAction
Source§fn clone(&self) -> UpdateStructureBlockAction
fn clone(&self) -> UpdateStructureBlockAction
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 UpdateStructureBlockAction
impl Debug for UpdateStructureBlockAction
Source§impl Deserialize for UpdateStructureBlockAction
impl Deserialize for UpdateStructureBlockAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl Serialize for UpdateStructureBlockAction
impl Serialize for UpdateStructureBlockAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for UpdateStructureBlockAction
Auto Trait Implementations§
impl Freeze for UpdateStructureBlockAction
impl RefUnwindSafe for UpdateStructureBlockAction
impl Send for UpdateStructureBlockAction
impl Sync for UpdateStructureBlockAction
impl Unpin for UpdateStructureBlockAction
impl UnwindSafe for UpdateStructureBlockAction
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