pub enum ObservationValue {
Tensor(TensorObservation),
Float(f64),
Integer(i64),
Unsigned(u64),
Boolean(bool),
Text(String),
}Expand description
One portable observation value.
Variants§
Tensor(TensorObservation)
Materialized tensor.
Float(f64)
Floating-point scalar, including timings and ratios.
Integer(i64)
Signed integer scalar.
Unsigned(u64)
Unsigned integer scalar.
Boolean(bool)
Boolean scalar.
Text(String)
Textual identity, label, or diagnostic.
Trait Implementations§
Source§impl Clone for ObservationValue
impl Clone for ObservationValue
Source§fn clone(&self) -> ObservationValue
fn clone(&self) -> ObservationValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObservationValue
impl Debug for ObservationValue
Source§impl<'de> Deserialize<'de> for ObservationValue
impl<'de> Deserialize<'de> for ObservationValue
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 PartialEq for ObservationValue
impl PartialEq for ObservationValue
Source§impl Serialize for ObservationValue
impl Serialize for ObservationValue
impl StructuralPartialEq for ObservationValue
Auto Trait Implementations§
impl Freeze for ObservationValue
impl RefUnwindSafe for ObservationValue
impl Send for ObservationValue
impl Sync for ObservationValue
impl Unpin for ObservationValue
impl UnsafeUnpin for ObservationValue
impl UnwindSafe for ObservationValue
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