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
§
latency: Option<NonZeroU64>
(Optional) latency of the primitive
Cell constructed using a primitive definition
Component
Cell constructed using a Calyx component
ThisComponent
This cell represents the current component
Constant
Cell representing a Constant
Implementations§
Trait Implementations§
source§impl PartialEq<CellType> for CellType
impl PartialEq<CellType> for CellType
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§
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.