pub struct ValueVector {
pub phys: PhysType,
pub encoding: VecEncoding,
pub data: RawBuf,
pub validity: Option<Bitmap>,
pub aux: Aux,
pub len: u32,
}Fields§
§phys: PhysType§encoding: VecEncoding§data: RawBuf§validity: Option<Bitmap>Absent means all valid, the common case; kernels skip the AND.
aux: Aux§len: u32Implementations§
Source§impl ValueVector
impl ValueVector
Sourcepub fn flat_from<T: Pod>(
arena: &mut MorselArena,
phys: PhysType,
values: &[T],
) -> Self
pub fn flat_from<T: Pod>( arena: &mut MorselArena, phys: PhysType, values: &[T], ) -> Self
Flat vector filled from a slice.
Sourcepub fn flat_uninit(arena: &mut MorselArena, phys: PhysType, len: usize) -> Self
pub fn flat_uninit(arena: &mut MorselArena, phys: PhysType, len: usize) -> Self
Flat vector with room for len values, to be filled by a kernel.
Sourcepub fn constant<T: Pod>(
arena: &mut MorselArena,
phys: PhysType,
value: T,
len: usize,
) -> Self
pub fn constant<T: Pod>( arena: &mut MorselArena, phys: PhysType, value: T, len: usize, ) -> Self
Constant vector: one stored value, len logical copies.
Sourcepub fn dict_str(
arena: &mut MorselArena,
codes: &[u16],
dict: Arc<Dictionary>,
) -> Self
pub fn dict_str( arena: &mut MorselArena, codes: &[u16], dict: Arc<Dictionary>, ) -> Self
Dict-encoded string vector: u16 codes into a shared dictionary.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn values_mut<T: Pod>(&mut self) -> &mut [T]
Sourcepub fn constant_value<T: Pod>(&self) -> T
pub fn constant_value<T: Pod>(&self) -> T
The single value of a Constant vector.
Sourcepub fn codes_u16(&self) -> &[u16]
pub fn codes_u16(&self) -> &[u16]
Codes of a dict vector (u16 width today; u8/u32 when a writer needs them).
pub fn dictionary(&self) -> &Dictionary
pub fn str_buffers(&self) -> Option<&StrBuffers>
Auto Trait Implementations§
impl !RefUnwindSafe for ValueVector
impl !UnwindSafe for ValueVector
impl Freeze for ValueVector
impl Send for ValueVector
impl Sync for ValueVector
impl Unpin for ValueVector
impl UnsafeUnpin for ValueVector
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