pub struct ByteCoords {
pub x: u8,
pub y: u8,
}Expand description
Map coordinates with raw 1-byte values
Fields§
§x: u8§y: u8Implementations§
Source§impl ByteCoords
impl ByteCoords
Trait Implementations§
Source§impl Clone for ByteCoords
impl Clone for ByteCoords
Source§fn clone(&self) -> ByteCoords
fn clone(&self) -> ByteCoords
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 ByteCoords
impl Debug for ByteCoords
Source§impl Default for ByteCoords
impl Default for ByteCoords
Source§fn default() -> ByteCoords
fn default() -> ByteCoords
Returns the “default value” for a type. Read more
Source§impl EoSerialize for ByteCoords
impl EoSerialize for ByteCoords
Source§fn serialize(&self, writer: &mut EoWriter) -> Result<(), EoSerializeError>
fn serialize(&self, writer: &mut EoWriter) -> Result<(), EoSerializeError>
Serializes a ByteCoords into the given EoWriter instance
Source§fn deserialize(reader: &EoReader) -> Result<Self, EoReaderError>
fn deserialize(reader: &EoReader) -> Result<Self, EoReaderError>
Deserializes a ByteCoords from an EoReader instance
Source§impl PartialEq for ByteCoords
impl PartialEq for ByteCoords
impl Eq for ByteCoords
impl StructuralPartialEq for ByteCoords
Auto Trait Implementations§
impl Freeze for ByteCoords
impl RefUnwindSafe for ByteCoords
impl Send for ByteCoords
impl Sync for ByteCoords
impl Unpin for ByteCoords
impl UnsafeUnpin for ByteCoords
impl UnwindSafe for ByteCoords
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