pub struct BlastWork {
pub exprs: u64,
pub gates: u64,
pub walked: u64,
}Expand description
★ THE BLASTER’S WORK, COUNTED — not timed. What a blast costs is three walks: the datapath expression it is handed (every node blasted once — a node blasted twice doubles the work per level above it), the gates it allocates (no gate is shared by value, so every allocation is a gate), and the memoised walk that prices the result (every gate visited once per edge into it — a walk that forgot its memo walks the tree). Each is a count a lock can bound by the size of what it walks, and none of them moves when the machine is busy.
Fields§
§exprs: u64Datapath expression nodes blasted.
gates: u64Gates allocated.
walked: u64Steps of the memoised pricing walk.
Trait Implementations§
impl Copy for BlastWork
impl Eq for BlastWork
impl StructuralPartialEq for BlastWork
Auto Trait Implementations§
impl Freeze for BlastWork
impl RefUnwindSafe for BlastWork
impl Send for BlastWork
impl Sync for BlastWork
impl Unpin for BlastWork
impl UnsafeUnpin for BlastWork
impl UnwindSafe for BlastWork
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.