pub enum Operation {
BitErasure {
count: u64,
},
BitCopy {
count: u64,
},
VectorSimilarity {
dimensions: usize,
},
MatrixVectorMultiply {
rows: usize,
cols: usize,
},
NeuralForward {
parameters: u64,
},
MemoryRead {
bytes: u64,
},
MemoryWrite {
bytes: u64,
},
GraphTraversal {
hops: u64,
},
Custom {
bit_erasures: u64,
},
}Expand description
Types of computational operations for energy tracking
Variants§
BitErasure
Bit erasure (irreversible operation)
BitCopy
Bit copy (theoretically reversible)
VectorSimilarity
Vector similarity computation
MatrixVectorMultiply
Matrix-vector multiplication
NeuralForward
Neural network forward pass
MemoryRead
Memory read (near-reversible)
MemoryWrite
Memory write (includes erasure)
GraphTraversal
HNSW graph traversal
Custom
Custom operation with known bit erasures
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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