Skip to main content

AnyPin

Struct AnyPin 

Source
pub struct AnyPin { /* private fields */ }

Implementations§

Source§

impl AnyPin

Source

pub unsafe fn steal(pin_port: u8) -> Self

Trait Implementations§

Source§

impl Clone for AnyPin

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AnyPin

Source§

impl From<PA0> for AnyPin

Source§

fn from(x: PA0) -> Self

Converts to this type from the input type.
Source§

impl From<PA1> for AnyPin

Source§

fn from(x: PA1) -> Self

Converts to this type from the input type.
Source§

impl From<PA2> for AnyPin

Source§

fn from(x: PA2) -> Self

Converts to this type from the input type.
Source§

impl From<PA3> for AnyPin

Source§

fn from(x: PA3) -> Self

Converts to this type from the input type.
Source§

impl From<PA4> for AnyPin

Source§

fn from(x: PA4) -> Self

Converts to this type from the input type.
Source§

impl From<PA5> for AnyPin

Source§

fn from(x: PA5) -> Self

Converts to this type from the input type.
Source§

impl From<PA6> for AnyPin

Source§

fn from(x: PA6) -> Self

Converts to this type from the input type.
Source§

impl From<PA7> for AnyPin

Source§

fn from(x: PA7) -> Self

Converts to this type from the input type.
Source§

impl From<PC0> for AnyPin

Source§

fn from(x: PC0) -> Self

Converts to this type from the input type.
Source§

impl From<PC1> for AnyPin

Source§

fn from(x: PC1) -> Self

Converts to this type from the input type.
Source§

impl From<PC2> for AnyPin

Source§

fn from(x: PC2) -> Self

Converts to this type from the input type.
Source§

impl From<PC3> for AnyPin

Source§

fn from(x: PC3) -> Self

Converts to this type from the input type.
Source§

impl From<PC4> for AnyPin

Source§

fn from(x: PC4) -> Self

Converts to this type from the input type.
Source§

impl From<PC5> for AnyPin

Source§

fn from(x: PC5) -> Self

Converts to this type from the input type.
Source§

impl From<PC6> for AnyPin

Source§

fn from(x: PC6) -> Self

Converts to this type from the input type.
Source§

impl From<PC7> for AnyPin

Source§

fn from(x: PC7) -> Self

Converts to this type from the input type.
Source§

impl From<PD0> for AnyPin

Source§

fn from(x: PD0) -> Self

Converts to this type from the input type.
Source§

impl From<PD1> for AnyPin

Source§

fn from(x: PD1) -> Self

Converts to this type from the input type.
Source§

impl From<PD2> for AnyPin

Source§

fn from(x: PD2) -> Self

Converts to this type from the input type.
Source§

impl From<PD3> for AnyPin

Source§

fn from(x: PD3) -> Self

Converts to this type from the input type.
Source§

impl From<PD4> for AnyPin

Source§

fn from(x: PD4) -> Self

Converts to this type from the input type.
Source§

impl From<PD5> for AnyPin

Source§

fn from(x: PD5) -> Self

Converts to this type from the input type.
Source§

impl From<PD6> for AnyPin

Source§

fn from(x: PD6) -> Self

Converts to this type from the input type.
Source§

impl From<PD7> for AnyPin

Source§

fn from(x: PD7) -> Self

Converts to this type from the input type.
Source§

impl PeripheralType for AnyPin

Source§

impl Pin for AnyPin

Source§

type ExtiChannel = AnyChannel

Source§

fn pin(&self) -> u8

Number of the pin within the port (0..31)
Source§

fn port(&self) -> u8

Port of the pin
Source§

fn degrade(self) -> AnyPin

Convert from concrete pin type PX_XX to type erased AnyPin.

Auto Trait Implementations§

§

impl Freeze for AnyPin

§

impl RefUnwindSafe for AnyPin

§

impl Send for AnyPin

§

impl Sync for AnyPin

§

impl Unpin for AnyPin

§

impl UnsafeUnpin for AnyPin

§

impl UnwindSafe for AnyPin

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.