pub struct Role {
pub key: &'static str,
pub signal: &'static str,
pub required: bool,
}Expand description
One configurable pin on a peripheral: the stm32.toml key, the database
signal name it resolves to, and whether the peripheral is unusable without it.
Fields§
§key: &'static strThe key as written in the config, e.g. "tx".
signal: &'static strThe database signal name, e.g. "TX".
required: boolWhether omitting this pin is an error (vs. a legitimately optional line).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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