pub struct PositionReachedEvent {
pub x: i16,
pub y: i16,
}
Fields§
§x: i16
§y: i16
Trait Implementations§
source§impl Clone for PositionReachedEvent
impl Clone for PositionReachedEvent
source§fn clone(&self) -> PositionReachedEvent
fn clone(&self) -> PositionReachedEvent
Returns a copy 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 PositionReachedEvent
impl Debug for PositionReachedEvent
source§impl Default for PositionReachedEvent
impl Default for PositionReachedEvent
source§fn default() -> PositionReachedEvent
fn default() -> PositionReachedEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for PositionReachedEvent
impl FromByteSlice for PositionReachedEvent
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> PositionReachedEvent
fn from_le_byte_slice(bytes: &[u8]) -> PositionReachedEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for PositionReachedEvent
impl Hash for PositionReachedEvent
source§impl PartialEq for PositionReachedEvent
impl PartialEq for PositionReachedEvent
source§fn eq(&self, other: &PositionReachedEvent) -> bool
fn eq(&self, other: &PositionReachedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PositionReachedEvent
impl Eq for PositionReachedEvent
impl StructuralPartialEq for PositionReachedEvent
Auto Trait Implementations§
impl RefUnwindSafe for PositionReachedEvent
impl Send for PositionReachedEvent
impl Sync for PositionReachedEvent
impl Unpin for PositionReachedEvent
impl UnwindSafe for PositionReachedEvent
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