pub enum CellType {
Primitive {
name: Id,
param_binding: Box<Binding>,
is_comb: bool,
latency: Option<NonZeroU64>,
},
Component {
name: Id,
},
ThisComponent,
Constant {
val: u64,
width: u64,
},
}
Expand description
The type for a Cell
Variants
Primitive
Fields
name: Id
Name of the primitive cell used to instantiate this cell.
is_comb: bool
True iff this is a combinational primitive
latency: Option<NonZeroU64>
(Optional) latency of the primitive
Cell constructed using a primitive definition
Component
Fields
name: Id
Name of the component used to instantiate this cell.
Cell constructed using a Calyx component
ThisComponent
This cell represents the current component
Constant
Cell representing a Constant
Implementations
Trait Implementations
impl Eq for CellType
impl StructuralEq for CellType
impl StructuralPartialEq for CellType
Auto Trait Implementations
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnwindSafe for CellType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.