pub enum Any {
Null,
Undefined,
Bool(bool),
Number(f64),
BigInt(i64),
String(Arc<str>),
Buffer(Arc<[u8]>),
Array(Arc<[Any]>),
Map(Arc<HashMap<String, Any>>),
}
Expand description
Any is an enum with a potentially associated value that is used to represent JSON values and supports efficient encoding of those values.
Variants§
Null
Undefined
Bool(bool)
Number(f64)
BigInt(i64)
String(Arc<str>)
Buffer(Arc<[u8]>)
Array(Arc<[Any]>)
Map(Arc<HashMap<String, Any>>)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Any
impl<'de> Deserialize<'de> for Any
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
impl StructuralPartialEq for Any
Auto Trait Implementations§
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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
source§impl<T> Prelim for T
impl<T> Prelim for T
source§fn into_content(self, _txn: &mut TransactionMut<'_>) -> (ItemContent, Option<T>)
fn into_content(self, _txn: &mut TransactionMut<'_>) -> (ItemContent, Option<T>)
This method is used to create initial content required in order to create a block item.
A supplied
ptr
can be used to identify block that is about to be created to store
the returned content. Read moresource§fn integrate(self, _txn: &mut TransactionMut<'_>, _inner_ref: BranchPtr)
fn integrate(self, _txn: &mut TransactionMut<'_>, _inner_ref: BranchPtr)
Method called once an original item filled with content from Self::into_content has been
added to block store. This method is used by complex types such as maps or arrays to append
the original contents of prelim struct into YMap, YArray etc.