Trait mysql_async::binlog::jsonb::ComplexType
source · pub trait ComplexType {
const IS_ARRAY: bool;
// Required methods
fn header_size<T>(element_count: u32) -> usize
where T: StorageFormat;
fn value_entry_offset<T>(element_count: u32, pos: u32) -> usize
where T: StorageFormat;
}
Expand description
Type of a complex jsonb value (array or object).
Required Associated Constants§
Required Methods§
sourcefn header_size<T>(element_count: u32) -> usizewhere
T: StorageFormat,
fn header_size<T>(element_count: u32) -> usizewhere
T: StorageFormat,
Calculates header size for this type.
sourcefn value_entry_offset<T>(element_count: u32, pos: u32) -> usizewhere
T: StorageFormat,
fn value_entry_offset<T>(element_count: u32, pos: u32) -> usizewhere
T: StorageFormat,
Calculates an offset to the given value entry.
Object Safety§
This trait is not object safe.