Struct stm32_metapac::metadata::Peripheral
pub struct Peripheral {
pub name: &'static str,
pub address: u64,
pub registers: Option<PeripheralRegisters>,
pub rcc: Option<PeripheralRcc>,
pub pins: &'static [PeripheralPin],
pub dma_channels: &'static [PeripheralDmaChannel],
pub interrupts: &'static [PeripheralInterrupt],
}
Fields§
§name: &'static str
§address: u64
§registers: Option<PeripheralRegisters>
§rcc: Option<PeripheralRcc>
§pins: &'static [PeripheralPin]
§dma_channels: &'static [PeripheralDmaChannel]
§interrupts: &'static [PeripheralInterrupt]
Trait Implementations§
§impl Clone for Peripheral
impl Clone for Peripheral
§fn clone(&self) -> Peripheral
fn clone(&self) -> Peripheral
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 more§impl Debug for Peripheral
impl Debug for Peripheral
§impl PartialEq for Peripheral
impl PartialEq for Peripheral
§fn eq(&self, other: &Peripheral) -> bool
fn eq(&self, other: &Peripheral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Peripheral
impl StructuralEq for Peripheral
impl StructuralPartialEq for Peripheral
Auto Trait Implementations§
impl RefUnwindSafe for Peripheral
impl Send for Peripheral
impl Sync for Peripheral
impl Unpin for Peripheral
impl UnwindSafe for Peripheral
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