pub struct Peripheral {
pub name: String,
pub instances: Vec<Instance>,
}
Expand description
An on-board peripheral, such as an IO port.
Fields§
§name: String
The name of the peripheral, for example, PORT
.
instances: Vec<Instance>
A list of instances where the peripheral is used.
As an example, if the peripheral is an IO port, then the
instance list would list all PORT instances, such as PORTA
and PORTB
.
Implementations§
Trait Implementations§
Source§impl Clone for Peripheral
impl Clone for Peripheral
Source§fn clone(&self) -> Peripheral
fn clone(&self) -> Peripheral
Returns a duplicate 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 moreSource§impl Debug for Peripheral
impl Debug for Peripheral
Source§impl Hash for Peripheral
impl Hash for Peripheral
Source§impl PartialEq for Peripheral
impl PartialEq for Peripheral
Source§impl PartialOrd for Peripheral
impl PartialOrd for Peripheral
impl Eq for Peripheral
impl StructuralPartialEq for Peripheral
Auto Trait Implementations§
impl Freeze for Peripheral
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