pub trait ComplexType {
const IS_ARRAY: bool;
// Required methods
fn header_size<T: StorageFormat>(element_count: u32) -> usize;
fn value_entry_offset<T: StorageFormat>(
element_count: u32,
pos: u32,
) -> usize;
}
Expand description
Type of a complex jsonb value (array or object).
Required Associated Constants§
Required Methods§
Sourcefn header_size<T: StorageFormat>(element_count: u32) -> usize
fn header_size<T: StorageFormat>(element_count: u32) -> usize
Calculates header size for this type.
Sourcefn value_entry_offset<T: StorageFormat>(element_count: u32, pos: u32) -> usize
fn value_entry_offset<T: StorageFormat>(element_count: u32, pos: u32) -> usize
Calculates an offset to the given value entry.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.