pub enum FrcValue {
Bool(bool),
Int(i64),
Double(f64),
Float(f32),
String(String),
BoolArray(Vec<bool>),
IntArray(Vec<i64>),
FloatArray(Vec<f32>),
DoubleArray(Vec<f64>),
StringArray(Vec<String>),
Binary(FrcBinaryFormats),
}Variants§
Bool(bool)
Int(i64)
Double(f64)
Float(f32)
String(String)
BoolArray(Vec<bool>)
IntArray(Vec<i64>)
FloatArray(Vec<f32>)
DoubleArray(Vec<f64>)
StringArray(Vec<String>)
Binary(FrcBinaryFormats)
Implementations§
source§impl FrcValue
impl FrcValue
sourcepub fn get_type(&self) -> FrcType
pub fn get_type(&self) -> FrcType
Returns the type enum of the value, a more memory efficient way of checking the type
sourcepub fn to_timestamped_now(self) -> TimestampedValue
pub fn to_timestamped_now(self) -> TimestampedValue
Consumes itself to a timestamped value with the current timestamp
sourcepub fn to_timestamped(self, timestamp: FrcTimestamp) -> TimestampedValue
pub fn to_timestamped(self, timestamp: FrcTimestamp) -> TimestampedValue
Consumes itself to a timestamped value with the given timestamp
sourcepub fn as_timestamped_now(&self) -> TimestampedValue
pub fn as_timestamped_now(&self) -> TimestampedValue
Clones itself to a timestamped value with the current timestamp
sourcepub fn as_timestamped(&self, timestamp: FrcTimestamp) -> TimestampedValue
pub fn as_timestamped(&self, timestamp: FrcTimestamp) -> TimestampedValue
Clones itself to a timestamped value with the given timestamp
pub fn to_tagged(self) -> TaggedValue
sourcepub fn default_value(type: FrcType) -> Self
pub fn default_value(type: FrcType) -> Self
creates a default value based on the type
Trait Implementations§
source§impl<'de> Deserialize<'de> for FrcValue
impl<'de> Deserialize<'de> for FrcValue
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<FrcValue> for FrcValue
impl PartialEq<FrcValue> for FrcValue
impl StructuralPartialEq for FrcValue
Auto Trait Implementations§
impl RefUnwindSafe for FrcValue
impl Send for FrcValue
impl Sync for FrcValue
impl Unpin for FrcValue
impl UnwindSafe for FrcValue
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