pub enum Value {
UInt32(u32),
Int32(i32),
UInt64(u64),
Int64(i64),
Decimal(Decimal),
ASCIIString(String),
UnicodeString(String),
Bytes(Vec<u8>),
}Expand description
Represents current value of a field.
Variants§
UInt32(u32)
Int32(i32)
UInt64(u64)
Int64(i64)
Decimal(Decimal)
ASCIIString(String)
UnicodeString(String)
Bytes(Vec<u8>)
Implementations§
Source§impl Value
impl Value
pub fn set_from_string(&mut self, s: &str) -> Result<()>
pub fn apply_delta(&self, delta: Value, sub: i32) -> Result<Value>
pub fn apply_tail(&self, tail: Value) -> Result<Value>
pub fn apply_increment(&self) -> Result<Value>
pub fn find_delta(&self, prev: &Value) -> Result<(Value, i32)>
pub fn find_tail(&self, prev: &Value) -> Result<Value>
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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