pub enum Value {
Unknown(Bytes),
Float(f32),
FixedPoint(FixedPoint),
Int(u16),
Int32(u32),
}
Variants§
Implementations§
Source§impl Value
impl Value
pub fn into_bytes(self) -> Bytes
pub fn from_bytes(b: Bytes) -> Result<Self, TryBufError>
Trait Implementations§
Source§impl From<FixedPoint> for Value
impl From<FixedPoint> for Value
Source§fn from(fp: FixedPoint) -> Self
fn from(fp: FixedPoint) -> Self
Converts to this type from the input type.
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