pub struct SourceTable { /* private fields */ }Implementations§
Source§impl SourceTable
impl SourceTable
pub fn new() -> SourceTable
Sourcepub fn declare(&mut self, name: impl Into<String>, spec: CellSpec) -> Wire
pub fn declare(&mut self, name: impl Into<String>, spec: CellSpec) -> Wire
Declare one cell, returning its wire.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn create_circuit(&mut self) -> Circuit
pub fn create_circuit(&mut self) -> Circuit
A circuit with every cell’s range, grid and exact-bit declaration.
Sourcepub fn next(&mut self, cell: Wire, value: Wire)
pub fn next(&mut self, cell: Wire, value: Wire)
Pair a state cell with the wire that holds its next value.
Sourcepub fn next_wires(&self) -> Vec<Wire>
pub fn next_wires(&self) -> Vec<Wire>
The wires the host needs after an evaluation: every state cell’s next value.
pub fn initial(&self) -> Vec<f32>
Trait Implementations§
Source§impl Clone for SourceTable
impl Clone for SourceTable
Source§impl Debug for SourceTable
impl Debug for SourceTable
Auto Trait Implementations§
impl Freeze for SourceTable
impl RefUnwindSafe for SourceTable
impl Send for SourceTable
impl Sync for SourceTable
impl Unpin for SourceTable
impl UnsafeUnpin for SourceTable
impl UnwindSafe for SourceTable
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