pub struct DisplayConfiguration {
pub contrast: u8,
pub invert: bool,
}
Fields§
§contrast: u8
§invert: bool
Trait Implementations§
source§impl Clone for DisplayConfiguration
impl Clone for DisplayConfiguration
source§fn clone(&self) -> DisplayConfiguration
fn clone(&self) -> DisplayConfiguration
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 DisplayConfiguration
impl Debug for DisplayConfiguration
source§impl Default for DisplayConfiguration
impl Default for DisplayConfiguration
source§fn default() -> DisplayConfiguration
fn default() -> DisplayConfiguration
Returns the “default value” for a type. Read more
source§impl FromByteSlice for DisplayConfiguration
impl FromByteSlice for DisplayConfiguration
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]) -> DisplayConfiguration
fn from_le_byte_slice(bytes: &[u8]) -> DisplayConfiguration
Deserialize the implementing type from a byte slice.
source§impl Hash for DisplayConfiguration
impl Hash for DisplayConfiguration
source§impl PartialEq for DisplayConfiguration
impl PartialEq for DisplayConfiguration
source§fn eq(&self, other: &DisplayConfiguration) -> bool
fn eq(&self, other: &DisplayConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DisplayConfiguration
impl Eq for DisplayConfiguration
impl StructuralPartialEq for DisplayConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for DisplayConfiguration
impl Send for DisplayConfiguration
impl Sync for DisplayConfiguration
impl Unpin for DisplayConfiguration
impl UnwindSafe for DisplayConfiguration
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