Struct frc_value::TimestampedValue
source · pub struct TimestampedValue {
pub timestamp: FrcTimestamp,
pub value: FrcValue,
}Fields§
§timestamp: FrcTimestamp§value: FrcValueImplementations§
source§impl TimestampedValue
impl TimestampedValue
pub fn new(timestamp: FrcTimestamp, value: FrcValue) -> Self
pub fn get_type(&self) -> FrcType
pub fn is_empty(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_after_timestamp(&self, timestamp: FrcTimestamp) -> bool
pub fn is_after_other(&self, other: &Self) -> bool
pub fn is_before_timestamp(&self, timestamp: FrcTimestamp) -> bool
pub fn is_before_other(&self, other: &Self) -> bool
pub fn replace_timestamp(&mut self, timestamp: FrcTimestamp)
pub fn replace_value(&mut self, value: FrcValue)
pub fn replace(&mut self, other: Self)
Trait Implementations§
source§impl Clone for TimestampedValue
impl Clone for TimestampedValue
source§fn clone(&self) -> TimestampedValue
fn clone(&self) -> TimestampedValue
Returns a copy 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 TimestampedValue
impl Debug for TimestampedValue
source§impl<'de> Deserialize<'de> for TimestampedValue
impl<'de> Deserialize<'de> for TimestampedValue
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 TimestampedValue
impl Display for TimestampedValue
source§impl Hash for TimestampedValue
impl Hash for TimestampedValue
source§impl PartialEq<TimestampedValue> for TimestampedValue
impl PartialEq<TimestampedValue> for TimestampedValue
source§fn eq(&self, other: &TimestampedValue) -> bool
fn eq(&self, other: &TimestampedValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TimestampedValue
impl Serialize for TimestampedValue
impl StructuralPartialEq for TimestampedValue
Auto Trait Implementations§
impl RefUnwindSafe for TimestampedValue
impl Send for TimestampedValue
impl Sync for TimestampedValue
impl Unpin for TimestampedValue
impl UnwindSafe for TimestampedValue
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