pub struct V5Block {
pub x: u32,
pub y: u32,
pub z: u32,
pub rotation: u8,
pub dir: V5Direction,
pub color: u8,
pub cp_order: Option<u16>,
pub start_order: Option<u32>,
}Fields§
§x: u32§y: u32§z: u32§rotation: u8§dir: V5Direction§color: u8§cp_order: Option<u16>§start_order: Option<u32>Trait Implementations§
Source§impl Block for V5Block
impl Block for V5Block
type Track = V5Track
type Extra = (V5Direction, u8, Option<u16>, Option<u32>)
type Coord = u32
fn extra_data(&self) -> Self::Extra
fn pos(&self) -> (Self::Coord, Self::Coord, Self::Coord)
fn rot(&self) -> u8
fn decode( data: &[u8], offset: &mut usize, id: u8, meta: <Self::Track as Track>::Metadata, ) -> Option<Self>
fn encode(&self, data: &mut Vec<u8>, meta: <Self::Track as Track>::Metadata)
impl Eq for V5Block
impl StructuralPartialEq for V5Block
Auto Trait Implementations§
impl Freeze for V5Block
impl RefUnwindSafe for V5Block
impl Send for V5Block
impl Sync for V5Block
impl Unpin for V5Block
impl UnsafeUnpin for V5Block
impl UnwindSafe for V5Block
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.