Struct pixels_graphics_lib::prelude::DirectionState
source · pub struct DirectionState {
pub up: bool,
pub down: bool,
pub left: bool,
pub right: bool,
}Fields§
§up: bool§down: bool§left: bool§right: boolImplementations§
Trait Implementations§
source§impl Clone for DirectionState
impl Clone for DirectionState
source§fn clone(&self) -> DirectionState
fn clone(&self) -> DirectionState
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 DirectionState
impl Debug for DirectionState
source§impl Default for DirectionState
impl Default for DirectionState
source§fn default() -> DirectionState
fn default() -> DirectionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DirectionState
impl Send for DirectionState
impl Sync for DirectionState
impl Unpin for DirectionState
impl UnwindSafe for DirectionState
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().