pub enum SampledValue {
Float(f64),
Bool(bool),
}Expand description
Represents a sampled value that can be either a floating-point number or a boolean.
Variants§
Trait Implementations§
Source§impl Clone for SampledValue
impl Clone for SampledValue
Source§fn clone(&self) -> SampledValue
fn clone(&self) -> SampledValue
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 SampledValue
impl Debug for SampledValue
Source§impl Display for SampledValue
impl Display for SampledValue
Source§impl FromSampledValue for SampledValue
impl FromSampledValue for SampledValue
Source§fn from_sampled_value(value: SampledValue) -> Result<Self, UncertainError>
fn from_sampled_value(value: SampledValue) -> Result<Self, UncertainError>
Attempts to convert an internal
SampledValue back into this type.Source§impl IntoSampledValue for SampledValue
impl IntoSampledValue for SampledValue
Source§fn into_sampled_value(self) -> SampledValue
fn into_sampled_value(self) -> SampledValue
Converts the type into an internal
SampledValue representation.Source§impl PartialEq for SampledValue
impl PartialEq for SampledValue
Source§impl ProbabilisticType for SampledValue
impl ProbabilisticType for SampledValue
Source§fn default_value() -> Self
fn default_value() -> Self
Provides a default or zero-equivalent value for the type.
impl Copy for SampledValue
impl StructuralPartialEq for SampledValue
Auto Trait Implementations§
impl Freeze for SampledValue
impl RefUnwindSafe for SampledValue
impl Send for SampledValue
impl Sync for SampledValue
impl Unpin for SampledValue
impl UnwindSafe for SampledValue
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