pub struct Unit {
pub name: String,
pub function: String,
pub latency: usize,
pub operands: Vec<String>,
pub results: Vec<String>,
}Expand description
A unit of a cut circuit: its instance name, the function it computes (its module), the clocks its results follow its operands by, and the names of its operand bits (outputs of the cut circuit) and result bits (inputs of it).
Fields§
§name: String§function: String§latency: usize§operands: Vec<String>§results: Vec<String>Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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