pub struct PinDecl {
pub name: String,
pub pin_num: u32,
pub mode: PinMode,
pub pull: PinPull,
pub span: Span,
}Expand description
Pin declaration: pin led = GPIO(18, OUT);
Fields§
§name: String§pin_num: u32§mode: PinMode§pull: PinPull§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for PinDecl
impl<'de> Deserialize<'de> for PinDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PinDecl
impl StructuralPartialEq for PinDecl
Auto Trait Implementations§
impl Freeze for PinDecl
impl RefUnwindSafe for PinDecl
impl Send for PinDecl
impl Sync for PinDecl
impl Unpin for PinDecl
impl UnsafeUnpin for PinDecl
impl UnwindSafe for PinDecl
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