Enum rkv::value::OwnedValue
source · pub enum OwnedValue {
Bool(bool),
U64(u64),
I64(i64),
F64(f64),
Instant(i64),
Uuid(Uuid),
Str(String),
Json(String),
Blob(Vec<u8>),
}
Variants§
Bool(bool)
U64(u64)
I64(i64)
F64(f64)
Instant(i64)
Uuid(Uuid)
Str(String)
Json(String)
Blob(Vec<u8>)
Trait Implementations§
source§impl Clone for OwnedValue
impl Clone for OwnedValue
source§fn clone(&self) -> OwnedValue
fn clone(&self) -> OwnedValue
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 OwnedValue
impl Debug for OwnedValue
source§impl<'v> From<&'v OwnedValue> for Value<'v>
impl<'v> From<&'v OwnedValue> for Value<'v>
source§fn from(value: &OwnedValue) -> Value<'_>
fn from(value: &OwnedValue) -> Value<'_>
Converts to this type from the input type.
source§impl<'v> From<&'v Value<'v>> for OwnedValue
impl<'v> From<&'v Value<'v>> for OwnedValue
source§fn from(value: &Value<'_>) -> OwnedValue
fn from(value: &Value<'_>) -> OwnedValue
Converts to this type from the input type.
source§impl PartialEq for OwnedValue
impl PartialEq for OwnedValue
source§fn eq(&self, other: &OwnedValue) -> bool
fn eq(&self, other: &OwnedValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OwnedValue
Auto Trait Implementations§
impl RefUnwindSafe for OwnedValue
impl Send for OwnedValue
impl Sync for OwnedValue
impl Unpin for OwnedValue
impl UnwindSafe for OwnedValue
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