pub struct ColumnIpv6 { /* private fields */ }Expand description
Column for IPv6 addresses (stored as FixedString(16) - 16 bytes)
Implementation Note:
Unlike C++, this does NOT delegate to ColumnFixedString because IPv6 data
is pure binary (not UTF-8 text). Rust’s ColumnFixedString uses String
which requires valid UTF-8 and trims null bytes, corrupting binary IPv6
data. Direct Vec<[u8; 16]> storage is more appropriate and preserves bulk
copy performance.
Implementations§
Source§impl ColumnIpv6
impl ColumnIpv6
Sourcepub fn with_data(self, data: Vec<[u8; 16]>) -> Self
pub fn with_data(self, data: Vec<[u8; 16]>) -> Self
Set the column data from a vector of 16-byte arrays.
Trait Implementations§
Source§impl Column for ColumnIpv6
impl Column for ColumnIpv6
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 ColumnIpv6
impl RefUnwindSafe for ColumnIpv6
impl Send for ColumnIpv6
impl Sync for ColumnIpv6
impl Unpin for ColumnIpv6
impl UnwindSafe for ColumnIpv6
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