pub enum Bytecode {
Load {
name: String,
value: f64,
desc: String,
},
SonarSvp {
depth_m: f64,
temp_c: f64,
salinity_ppt: f64,
},
SonarAbsorption {
frequency_khz: f64,
depth_m: f64,
temp_c: f64,
salinity_ppt: f64,
},
SonarTl {
range_m: f64,
frequency_khz: f64,
depth_m: f64,
temp_c: f64,
salinity_ppt: f64,
},
ThermalBound {
temp_c: f64,
min_safe: f64,
max_safe: f64,
},
GenericCompare {
left: f64,
operator: String,
right: f64,
desc: String,
},
GenericBound {
value: f64,
min: f64,
max: f64,
desc: String,
},
GenericRangeCheck {
value: f64,
min: f64,
max: f64,
desc: String,
},
Assert {
assertion_type: String,
expected: f64,
desc: String,
},
}Variants§
Load
SonarSvp
SonarAbsorption
SonarTl
ThermalBound
GenericCompare
GenericBound
GenericRangeCheck
Assert
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bytecode
impl<'de> Deserialize<'de> for Bytecode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bytecode
impl RefUnwindSafe for Bytecode
impl Send for Bytecode
impl Sync for Bytecode
impl Unpin for Bytecode
impl UnsafeUnpin for Bytecode
impl UnwindSafe for Bytecode
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