pub struct EncodedValuesLayout(/* private fields */);Implementations§
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_blob(&self, row: &mut EncodedValues, index: usize, value: &Blob)
pub fn get_blob(&self, row: &EncodedValues, index: usize) -> Blob
pub fn try_get_blob(&self, row: &EncodedValues, index: usize) -> Option<Blob>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_bool( &self, row: &mut EncodedValues, index: usize, value: impl Into<bool>, )
pub fn get_bool(&self, row: &EncodedValues, index: usize) -> bool
pub fn try_get_bool(&self, row: &EncodedValues, index: usize) -> Option<bool>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_date(&self, row: &mut EncodedValues, index: usize, value: Date)
pub fn get_date(&self, row: &EncodedValues, index: usize) -> Date
pub fn try_get_date(&self, row: &EncodedValues, index: usize) -> Option<Date>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_datetime( &self, row: &mut EncodedValues, index: usize, value: DateTime, )
pub fn get_datetime(&self, row: &EncodedValues, index: usize) -> DateTime
pub fn try_get_datetime( &self, row: &EncodedValues, index: usize, ) -> Option<DateTime>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
Sourcepub fn set_decimal(
&self,
row: &mut EncodedValues,
index: usize,
value: &Decimal,
)
pub fn set_decimal( &self, row: &mut EncodedValues, index: usize, value: &Decimal, )
Set a Decimal value with 2-tier storage optimization
- Values that fit in i128: stored inline with MSB=0
- Large values: stored in dynamic section with MSB=1
Sourcepub fn get_decimal(&self, row: &EncodedValues, index: usize) -> Decimal
pub fn get_decimal(&self, row: &EncodedValues, index: usize) -> Decimal
Get a Decimal value, detecting storage mode from MSB
Sourcepub fn try_get_decimal(
&self,
row: &EncodedValues,
index: usize,
) -> Option<Decimal>
pub fn try_get_decimal( &self, row: &EncodedValues, index: usize, ) -> Option<Decimal>
Try to get a Decimal value, returning None if undefined
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_duration( &self, row: &mut EncodedValues, index: usize, value: Duration, )
pub fn get_duration(&self, row: &EncodedValues, index: usize) -> Duration
pub fn try_get_duration( &self, row: &EncodedValues, index: usize, ) -> Option<Duration>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_f32( &self, row: &mut EncodedValues, index: usize, value: impl Into<f32>, )
pub fn get_f32(&self, row: &EncodedValues, index: usize) -> f32
pub fn try_get_f32(&self, row: &EncodedValues, index: usize) -> Option<f32>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_f64( &self, row: &mut EncodedValues, index: usize, value: impl Into<f64>, )
pub fn get_f64(&self, row: &EncodedValues, index: usize) -> f64
pub fn try_get_f64(&self, row: &EncodedValues, index: usize) -> Option<f64>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_i128( &self, row: &mut EncodedValues, index: usize, value: impl Into<i128>, )
pub fn get_i128(&self, row: &EncodedValues, index: usize) -> i128
pub fn try_get_i128(&self, row: &EncodedValues, index: usize) -> Option<i128>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_i16( &self, row: &mut EncodedValues, index: usize, value: impl Into<i16>, )
pub fn get_i16(&self, row: &EncodedValues, index: usize) -> i16
pub fn try_get_i16(&self, row: &EncodedValues, index: usize) -> Option<i16>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_i32( &self, row: &mut EncodedValues, index: usize, value: impl Into<i32>, )
pub fn get_i32(&self, row: &EncodedValues, index: usize) -> i32
pub fn try_get_i32(&self, row: &EncodedValues, index: usize) -> Option<i32>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_i64( &self, row: &mut EncodedValues, index: usize, value: impl Into<i64>, )
pub fn get_i64(&self, row: &EncodedValues, index: usize) -> i64
pub fn try_get_i64(&self, row: &EncodedValues, index: usize) -> Option<i64>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_i8( &self, row: &mut EncodedValues, index: usize, value: impl Into<i8>, )
pub fn get_i8(&self, row: &EncodedValues, index: usize) -> i8
pub fn try_get_i8(&self, row: &EncodedValues, index: usize) -> Option<i8>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_identity_id( &self, row: &mut EncodedValues, index: usize, value: IdentityId, )
pub fn get_identity_id(&self, row: &EncodedValues, index: usize) -> IdentityId
pub fn try_get_identity_id( &self, row: &EncodedValues, index: usize, ) -> Option<IdentityId>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
Sourcepub fn set_int(&self, row: &mut EncodedValues, index: usize, value: &Int)
pub fn set_int(&self, row: &mut EncodedValues, index: usize, value: &Int)
Set a Int value with 2-tier storage optimization
- Values fitting in 127 bits: stored inline with MSB=0
- Large values: stored in dynamic section with MSB=1
Sourcepub fn get_int(&self, row: &EncodedValues, index: usize) -> Int
pub fn get_int(&self, row: &EncodedValues, index: usize) -> Int
Get a Int value, detecting storage mode from MSB
Sourcepub fn try_get_int(&self, row: &EncodedValues, index: usize) -> Option<Int>
pub fn try_get_int(&self, row: &EncodedValues, index: usize) -> Option<Int>
Try to get a Int value, returning None if undefined
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_time(&self, row: &mut EncodedValues, index: usize, value: Time)
pub fn get_time(&self, row: &EncodedValues, index: usize) -> Time
pub fn try_get_time(&self, row: &EncodedValues, index: usize) -> Option<Time>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_u128( &self, row: &mut EncodedValues, index: usize, value: impl Into<u128>, )
pub fn get_u128(&self, row: &EncodedValues, index: usize) -> u128
pub fn try_get_u128(&self, row: &EncodedValues, index: usize) -> Option<u128>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_u16( &self, row: &mut EncodedValues, index: usize, value: impl Into<u16>, )
pub fn get_u16(&self, row: &EncodedValues, index: usize) -> u16
pub fn try_get_u16(&self, row: &EncodedValues, index: usize) -> Option<u16>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_u32( &self, row: &mut EncodedValues, index: usize, value: impl Into<u32>, )
pub fn get_u32(&self, row: &EncodedValues, index: usize) -> u32
pub fn try_get_u32(&self, row: &EncodedValues, index: usize) -> Option<u32>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_u64( &self, row: &mut EncodedValues, index: usize, value: impl Into<u64>, )
pub fn get_u64(&self, row: &EncodedValues, index: usize) -> u64
pub fn try_get_u64(&self, row: &EncodedValues, index: usize) -> Option<u64>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_u8( &self, row: &mut EncodedValues, index: usize, value: impl Into<u8>, )
pub fn get_u8(&self, row: &EncodedValues, index: usize) -> u8
pub fn try_get_u8(&self, row: &EncodedValues, index: usize) -> Option<u8>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
Sourcepub fn set_uint(&self, row: &mut EncodedValues, index: usize, value: &Uint)
pub fn set_uint(&self, row: &mut EncodedValues, index: usize, value: &Uint)
Set a Uint value with 2-tier storage optimization
- Values fitting in 127 bits: stored inline with MSB=0
- Large values: stored in dynamic section with MSB=1
Sourcepub fn get_uint(&self, row: &EncodedValues, index: usize) -> Uint
pub fn get_uint(&self, row: &EncodedValues, index: usize) -> Uint
Get a Uint value, detecting storage mode from MSB
Sourcepub fn try_get_uint(&self, row: &EncodedValues, index: usize) -> Option<Uint>
pub fn try_get_uint(&self, row: &EncodedValues, index: usize) -> Option<Uint>
Try to get a Uint value, returning None if undefined
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
Sourcepub fn set_undefined(&self, row: &mut EncodedValues, index: usize)
pub fn set_undefined(&self, row: &mut EncodedValues, index: usize)
Set a field as undefined (not set)
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_utf8( &self, row: &mut EncodedValues, index: usize, value: impl AsRef<str>, )
pub fn get_utf8<'a>(&'a self, row: &'a EncodedValues, index: usize) -> &'a str
pub fn try_get_utf8<'a>( &'a self, row: &'a EncodedValues, index: usize, ) -> Option<&'a str>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_uuid4(&self, row: &mut EncodedValues, index: usize, value: Uuid4)
pub fn get_uuid4(&self, row: &EncodedValues, index: usize) -> Uuid4
pub fn try_get_uuid4(&self, row: &EncodedValues, index: usize) -> Option<Uuid4>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_uuid7(&self, row: &mut EncodedValues, index: usize, value: Uuid7)
pub fn get_uuid7(&self, row: &EncodedValues, index: usize) -> Uuid7
pub fn try_get_uuid7(&self, row: &EncodedValues, index: usize) -> Option<Uuid7>
Source§impl EncodedValuesLayout
impl EncodedValuesLayout
pub fn set_values(&self, row: &mut EncodedValues, values: &[Value])
pub fn set_value(&self, row: &mut EncodedValues, index: usize, val: &Value)
pub fn get_value(&self, row: &EncodedValues, index: usize) -> Value
Methods from Deref<Target = EncodedValuesLayoutInner>§
pub fn allocate(&self) -> EncodedValues
pub fn data_offset(&self) -> usize
pub fn static_section_size(&self) -> usize
pub fn total_static_size(&self) -> usize
pub fn dynamic_section_start(&self) -> usize
pub fn dynamic_section_size(&self, row: &EncodedValues) -> usize
pub fn data_slice<'a>(&'a self, row: &'a EncodedValues) -> &'a [u8] ⓘ
pub fn all_defined(&self, row: &EncodedValues) -> bool
pub fn value(&self, index: usize) -> Type
Trait Implementations§
Source§impl Clone for EncodedValuesLayout
impl Clone for EncodedValuesLayout
Source§fn clone(&self) -> EncodedValuesLayout
fn clone(&self) -> EncodedValuesLayout
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedValuesLayout
impl Debug for EncodedValuesLayout
Auto Trait Implementations§
impl Freeze for EncodedValuesLayout
impl RefUnwindSafe for EncodedValuesLayout
impl Send for EncodedValuesLayout
impl Sync for EncodedValuesLayout
impl Unpin for EncodedValuesLayout
impl UnwindSafe for EncodedValuesLayout
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)