pub struct ColumnEnum8 { /* private fields */ }Expand description
Column for Enum8 type (stored as Int8 with name-value mapping in Type).
Implementations§
Source§impl ColumnEnum8
impl ColumnEnum8
Sourcepub fn with_data(self, data: Vec<i8>) -> Self
pub fn with_data(self, data: Vec<i8>) -> Self
Set the column data from a vector of raw i8 enum values.
Sourcepub fn append_value(&mut self, value: i8)
pub fn append_value(&mut self, value: i8)
Append enum by numeric value
Trait Implementations§
Source§impl Column for ColumnEnum8
impl Column for ColumnEnum8
Source§fn column_type(&self) -> &Type
fn column_type(&self) -> &Type
Get the type of this column
Source§fn append_column(&mut self, other: ColumnRef) -> Result<()>
fn append_column(&mut self, other: ColumnRef) -> Result<()>
Append another column’s data to this column
Source§fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
Load column data from byte buffer
Source§fn clone_empty(&self) -> ColumnRef
fn clone_empty(&self) -> ColumnRef
Create an empty clone of this column (same type, no data)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a mutable concrete column type
Auto Trait Implementations§
impl Freeze for ColumnEnum8
impl RefUnwindSafe for ColumnEnum8
impl Send for ColumnEnum8
impl Sync for ColumnEnum8
impl Unpin for ColumnEnum8
impl UnwindSafe for ColumnEnum8
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