[−][src]Struct ssd1306::builder::Builder
Builder struct. Driver options and interface are set using its methods.
Implementations
impl Builder
[src]
impl<DSIZE> Builder<DSIZE> where
DSIZE: DisplaySize,
[src]
DSIZE: DisplaySize,
pub fn size<S: DisplaySize>(self, size: S) -> Builder<S>
[src]
Set the size of the display. Supported sizes are defined by DisplaySize.
pub fn with_rotation(self, rotation: DisplayRotation) -> Self
[src]
Set the rotation of the display to one of four values. Defaults to no rotation.
pub fn connect<I>(self, interface: I) -> DisplayProperties<I, DSIZE> where
I: WriteOnlyDataCommand,
[src]
I: WriteOnlyDataCommand,
Finish the builder and use some interface communicate with the display
This method consumes the builder and must come last in the method call chain.
use ssd1306::{prelude::*, Builder, I2CDIBuilder}; let interface = I2CDIBuilder::new().init(i2c); let di: DisplayProperties<_, _> = Builder::new() .size(DisplaySize128x32) .connect(interface);
Trait Implementations
impl<DSIZE: Clone> Clone for Builder<DSIZE> where
DSIZE: DisplaySize,
[src]
DSIZE: DisplaySize,
pub fn clone(&self) -> Builder<DSIZE>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<DSIZE: Copy> Copy for Builder<DSIZE> where
DSIZE: DisplaySize,
[src]
DSIZE: DisplaySize,
impl Default for Builder
[src]
Auto Trait Implementations
impl<DSIZE> Send for Builder<DSIZE> where
DSIZE: Send,
[src]
DSIZE: Send,
impl<DSIZE> Sync for Builder<DSIZE> where
DSIZE: Sync,
[src]
DSIZE: Sync,
impl<DSIZE> Unpin for Builder<DSIZE> where
DSIZE: Unpin,
[src]
DSIZE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,