pub struct Chip {
pub name: String,
pub inputs: Vec<Pin>,
pub outputs: Vec<Pin>,
pub parts: Vec<Part>,
}
Expand description
A type that represents a chip
use nand2tetris_hdl_parser::{Part, Pin};
pub struct Chip {
pub name: String,
pub inputs: Vec<Pin>,
pub outputs: Vec<Pin>,
pub parts: Vec<Part>,
}
Fields§
§name: String
Holds the name of the chip
inputs: Vec<Pin>
Holds a list of input pins
outputs: Vec<Pin>
Holds a list of output pins
parts: Vec<Part>
Holds a list of parts
Trait Implementations§
impl Eq for Chip
impl StructuralPartialEq for Chip
Auto Trait Implementations§
impl Freeze for Chip
impl RefUnwindSafe for Chip
impl Send for Chip
impl Sync for Chip
impl Unpin for Chip
impl UnwindSafe for Chip
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