pub struct ColumnEnum16 { /* private fields */ }Expand description
Column for Enum16 type (stored as Int16 with name-value mapping in Type).
Implementations§
Source§impl ColumnEnum16
impl ColumnEnum16
Sourcepub fn with_data(self, data: Vec<i16>) -> Self
pub fn with_data(self, data: Vec<i16>) -> Self
Set the column data from a vector of raw i16 enum values.
Sourcepub fn append_value(&mut self, value: i16)
pub fn append_value(&mut self, value: i16)
Append enum by numeric value.
Trait Implementations§
Source§impl Column for ColumnEnum16
impl Column for ColumnEnum16
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 ColumnEnum16
impl RefUnwindSafe for ColumnEnum16
impl Send for ColumnEnum16
impl Sync for ColumnEnum16
impl Unpin for ColumnEnum16
impl UnwindSafe for ColumnEnum16
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