pub struct RawMapping {
pub pin: String,
pub af: u8,
pub peripheral: String,
pub signal: String,
}Expand description
One raw mapping parsed from the GPIO modes XML.
Fields§
§pin: StringPin name, e.g. "PA7".
af: u8Alternate function number, 0–15.
peripheral: StringPeripheral instance, e.g. "SPI1".
signal: StringSignal on that peripheral, e.g. "MOSI".
Trait Implementations§
Source§impl Clone for RawMapping
impl Clone for RawMapping
Source§fn clone(&self) -> RawMapping
fn clone(&self) -> RawMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawMapping
impl Debug for RawMapping
impl Eq for RawMapping
Source§impl PartialEq for RawMapping
impl PartialEq for RawMapping
Source§fn eq(&self, other: &RawMapping) -> bool
fn eq(&self, other: &RawMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawMapping
Auto Trait Implementations§
impl Freeze for RawMapping
impl RefUnwindSafe for RawMapping
impl Send for RawMapping
impl Sync for RawMapping
impl Unpin for RawMapping
impl UnsafeUnpin for RawMapping
impl UnwindSafe for RawMapping
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