Struct ssd1306::size::DisplaySize72x40
source · pub struct DisplaySize72x40;
Expand description
Size information for the common 72x40 variants
Trait Implementations§
source§impl Clone for DisplaySize72x40
impl Clone for DisplaySize72x40
source§fn clone(&self) -> DisplaySize72x40
fn clone(&self) -> DisplaySize72x40
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 DisplaySize72x40
impl Debug for DisplaySize72x40
source§impl DisplaySize for DisplaySize72x40
impl DisplaySize for DisplaySize72x40
source§type Buffer = [u8; 360]
type Buffer = [u8; 360]
Size of framebuffer. Because the display is monochrome, this is
width * height / 8
source§fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand,
) -> Result<(), DisplayError>
fn configure( &self, iface: &mut impl WriteOnlyDataCommand, ) -> Result<(), DisplayError>
Send resolution and model-dependent configuration to the display Read more
source§const DRIVER_COLS: u8 = 128u8
const DRIVER_COLS: u8 = 128u8
Maximum width supported by the display driver
source§const DRIVER_ROWS: u8 = 64u8
const DRIVER_ROWS: u8 = 64u8
Maximum height supported by the display driver
source§impl DisplaySizeAsync for DisplaySize72x40
impl DisplaySizeAsync for DisplaySize72x40
source§type Buffer = [u8; 360]
type Buffer = [u8; 360]
Size of framebuffer. Because the display is monochrome, this is
width * height / 8
source§async fn configure(
&self,
iface: &mut impl AsyncWriteOnlyDataCommand,
) -> Result<(), DisplayError>
async fn configure( &self, iface: &mut impl AsyncWriteOnlyDataCommand, ) -> Result<(), DisplayError>
Send resolution and model-dependent configuration to the display Read more
source§const DRIVER_COLS: u8 = 128u8
const DRIVER_COLS: u8 = 128u8
Maximum width supported by the display driver
source§const DRIVER_ROWS: u8 = 64u8
const DRIVER_ROWS: u8 = 64u8
Maximum height supported by the display driver
impl Copy for DisplaySize72x40
Auto Trait Implementations§
impl Freeze for DisplaySize72x40
impl RefUnwindSafe for DisplaySize72x40
impl Send for DisplaySize72x40
impl Sync for DisplaySize72x40
impl Unpin for DisplaySize72x40
impl UnwindSafe for DisplaySize72x40
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.