pub struct FluxVm {
pub registers: HashMap<String, f64>,
pub sound_velocity: f64,
pub absorption_db_km: f64,
pub transmission_loss_db: f64,
pub signal_excess_db: f64,
pub last_result: f64,
}Fields§
§registers: HashMap<String, f64>§sound_velocity: f64§absorption_db_km: f64§transmission_loss_db: f64§signal_excess_db: f64§last_result: f64Implementations§
Source§impl FluxVm
impl FluxVm
pub fn new() -> Self
Sourcepub fn execute(&mut self, bytecodes: &[Bytecode]) -> Vec<TraceEntry>
pub fn execute(&mut self, bytecodes: &[Bytecode]) -> Vec<TraceEntry>
Execute a sequence of bytecodes and produce a trace.
Sourcepub fn evaluate(
&self,
trace: &[TraceEntry],
problem: &ConstraintProblem,
) -> (String, f64, Option<Value>)
pub fn evaluate( &self, trace: &[TraceEntry], problem: &ConstraintProblem, ) -> (String, f64, Option<Value>)
Evaluate the trace and determine PROVEN/DISPROVEN with confidence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FluxVm
impl RefUnwindSafe for FluxVm
impl Send for FluxVm
impl Sync for FluxVm
impl Unpin for FluxVm
impl UnsafeUnpin for FluxVm
impl UnwindSafe for FluxVm
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