pub struct BusDecl {
pub name: String,
pub bus_type: BusType,
pub bus_id: u32,
pub pins: Vec<String>,
pub baudrate: u32,
pub span: Span,
}Expand description
Hardware Bus declaration: i2c bus0 = I2C(0, sda, scl, 400000);
Fields§
§name: String§bus_type: BusType§bus_id: u32§pins: Vec<String>§baudrate: u32§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for BusDecl
impl<'de> Deserialize<'de> for BusDecl
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 BusDecl
impl StructuralPartialEq for BusDecl
Auto Trait Implementations§
impl Freeze for BusDecl
impl RefUnwindSafe for BusDecl
impl Send for BusDecl
impl Sync for BusDecl
impl Unpin for BusDecl
impl UnsafeUnpin for BusDecl
impl UnwindSafe for BusDecl
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