pub enum CalyxCellKind {
Register {
size: usize,
},
CombMemoryD1 {
size: usize,
length: usize,
address_bits: usize,
},
Primitive {
name: String,
params: Vec<u64>,
},
GoDoneComponent {
component: String,
},
Constant {
width: usize,
},
}Expand description
Describes the semantics of a cell.
Variants§
Register
Register { size } is a "std_reg" of bit-width size.
CombMemoryD1
CombMemoryD1 { size, length, address_bits } is a "comb_mem_d1" with
cell bit-width size, cell count length, and address bit-width
address_bits.
Primitive
A calyx primitive other than a register, memory, or constant.
GoDoneComponent
GoDoneComponent { component } is a cell for a
component named component.
Constant
Constant { width } is a "std_const" with bit-width width.
Implementations§
Source§impl CalyxCellKind
impl CalyxCellKind
Trait Implementations§
Source§impl Clone for CalyxCellKind
impl Clone for CalyxCellKind
Source§fn clone(&self) -> CalyxCellKind
fn clone(&self) -> CalyxCellKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for CalyxCellKind
impl Display for CalyxCellKind
Source§impl PartialEq for CalyxCellKind
impl PartialEq for CalyxCellKind
impl Eq for CalyxCellKind
impl StructuralPartialEq for CalyxCellKind
Auto Trait Implementations§
impl Freeze for CalyxCellKind
impl RefUnwindSafe for CalyxCellKind
impl Send for CalyxCellKind
impl Sync for CalyxCellKind
impl Unpin for CalyxCellKind
impl UnwindSafe for CalyxCellKind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more