Skip to main content

FourBitBus

Struct FourBitBus 

Source
pub struct FourBitBus<RS: OutputPin, EN: OutputPin, D4: OutputPin, D5: OutputPin, D6: OutputPin, D7: OutputPin> { /* private fields */ }

Implementations§

Source§

impl<RS: OutputPin, EN: OutputPin, D4: OutputPin, D5: OutputPin, D6: OutputPin, D7: OutputPin> FourBitBus<RS, EN, D4, D5, D6, D7>

Source

pub fn from_pins( rs: RS, en: EN, d4: D4, d5: D5, d6: D6, d7: D7, ) -> FourBitBus<RS, EN, D4, D5, D6, D7>

Trait Implementations§

Source§

impl<RS: OutputPin, EN: OutputPin, D4: OutputPin, D5: OutputPin, D6: OutputPin, D7: OutputPin> DataBus for FourBitBus<RS, EN, D4, D5, D6, D7>

Source§

fn write<D: DelayUs<u16> + DelayMs<u8>>( &mut self, byte: u8, data: bool, delay: &mut D, ) -> Result<()>

Auto Trait Implementations§

§

impl<RS, EN, D4, D5, D6, D7> Freeze for FourBitBus<RS, EN, D4, D5, D6, D7>
where RS: Freeze, EN: Freeze, D4: Freeze, D5: Freeze, D6: Freeze, D7: Freeze,

§

impl<RS, EN, D4, D5, D6, D7> RefUnwindSafe for FourBitBus<RS, EN, D4, D5, D6, D7>

§

impl<RS, EN, D4, D5, D6, D7> Send for FourBitBus<RS, EN, D4, D5, D6, D7>
where RS: Send, EN: Send, D4: Send, D5: Send, D6: Send, D7: Send,

§

impl<RS, EN, D4, D5, D6, D7> Sync for FourBitBus<RS, EN, D4, D5, D6, D7>
where RS: Sync, EN: Sync, D4: Sync, D5: Sync, D6: Sync, D7: Sync,

§

impl<RS, EN, D4, D5, D6, D7> Unpin for FourBitBus<RS, EN, D4, D5, D6, D7>
where RS: Unpin, EN: Unpin, D4: Unpin, D5: Unpin, D6: Unpin, D7: Unpin,

§

impl<RS, EN, D4, D5, D6, D7> UnsafeUnpin for FourBitBus<RS, EN, D4, D5, D6, D7>

§

impl<RS, EN, D4, D5, D6, D7> UnwindSafe for FourBitBus<RS, EN, D4, D5, D6, D7>
where RS: UnwindSafe, EN: UnwindSafe, D4: UnwindSafe, D5: UnwindSafe, D6: UnwindSafe, D7: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.