pub struct Column { /* private fields */ }Expand description
A read-only dense column.
Implementations§
Source§impl Column
impl Column
Sourcepub fn pack<'a>(
count: u32,
records: impl IntoIterator<Item = (Ordinal, &'a [u8])>,
) -> Vec<u8> ⓘ
pub fn pack<'a>( count: u32, records: impl IntoIterator<Item = (Ordinal, &'a [u8])>, ) -> Vec<u8> ⓘ
The column records pack, in ordinal order.
A record is placed at its ordinal, and an ordinal no record names gets an empty range.
Sourcepub fn read(bytes: &[u8]) -> Result<Self, ColumnError>
pub fn read(bytes: &[u8]) -> Result<Self, ColumnError>
Reads a packed column, checking its offsets once so a read never can.
§Errors
Returns ColumnError when the bytes are shorter than the header
declares or an offset lies outside the records.
Trait Implementations§
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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