pub enum MetaValue {
Str(String),
I64(i64),
F64(f64),
Bool(bool),
Bytes(Vec<u8>),
}Expand description
One typed metadata value. Round-trips through serde and through the Arrow
columns of meta_schema — the on-disk form is columnar (one nullable column
per variant plus a discriminant), so the section stays directly queryable by
DuckDB/Polars, exactly like the rest of znippy’s index layer.
Variants§
Str(String)
I64(i64)
F64(f64)
Bool(bool)
Bytes(Vec<u8>)
Opaque bytes — e.g. dwarves’ build-thing wasm module, or a digest.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MetaValue
impl<'de> Deserialize<'de> for MetaValue
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 MetaValue
Auto Trait Implementations§
impl Freeze for MetaValue
impl RefUnwindSafe for MetaValue
impl Send for MetaValue
impl Sync for MetaValue
impl Unpin for MetaValue
impl UnsafeUnpin for MetaValue
impl UnwindSafe for MetaValue
Blanket Implementations§
impl<T> Allocation for T
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