#[non_exhaustive]pub enum PhysicalValue {
GasFlow(Sccm),
Pressure(MilliTorr),
RfPower(Watts),
Dimensionless(f64),
}Expand description
A tagged physical observation: a scalar value together with its dimensional
classification. The DSFB public observer API accepts PhysicalValue rather
than bare f64.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GasFlow(Sccm)
Gas mass-flow controller value.
Pressure(MilliTorr)
Chamber pressure sensor value.
RfPower(Watts)
RF generator power value.
Dimensionless(f64)
Dimensionless normalised residual (z-score or fractional deviation).
Implementations§
Source§impl PhysicalValue
impl PhysicalValue
Sourcepub fn raw_scalar(self) -> f64
pub fn raw_scalar(self) -> f64
Extract the raw scalar.
Callers that depend on the physical meaning of the value must preserve
PhysicalValue::dimension alongside any downstream use of this scalar.
Trait Implementations§
Source§impl Clone for PhysicalValue
impl Clone for PhysicalValue
Source§fn clone(&self) -> PhysicalValue
fn clone(&self) -> PhysicalValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicalValue
impl Debug for PhysicalValue
Source§impl<'de> Deserialize<'de> for PhysicalValue
impl<'de> Deserialize<'de> for PhysicalValue
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
Source§impl Display for PhysicalValue
impl Display for PhysicalValue
Source§impl PartialEq for PhysicalValue
impl PartialEq for PhysicalValue
Source§impl Serialize for PhysicalValue
impl Serialize for PhysicalValue
impl Copy for PhysicalValue
impl StructuralPartialEq for PhysicalValue
Auto Trait Implementations§
impl Freeze for PhysicalValue
impl RefUnwindSafe for PhysicalValue
impl Send for PhysicalValue
impl Sync for PhysicalValue
impl Unpin for PhysicalValue
impl UnsafeUnpin for PhysicalValue
impl UnwindSafe for PhysicalValue
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