pub struct V6Block {
pub x: u32,
pub y: u32,
pub z: u32,
pub rotation: u8,
pub dir: V6Direction,
pub color: u8,
pub cp_order: Option<u16>,
pub start_order: Option<u32>,
}Fields§
§x: u32§y: u32§z: u32§rotation: u8§dir: V6Direction§color: u8§cp_order: Option<u16>§start_order: Option<u32>Trait Implementations§
Source§impl Block for V6Block
impl Block for V6Block
type Track = V6Track
type Extra = (V6Direction, 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 V6Block
impl StructuralPartialEq for V6Block
Auto Trait Implementations§
impl Freeze for V6Block
impl RefUnwindSafe for V6Block
impl Send for V6Block
impl Sync for V6Block
impl Unpin for V6Block
impl UnsafeUnpin for V6Block
impl UnwindSafe for V6Block
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.