#[non_exhaustive]pub enum MockDuckValue {
}Expand description
A DuckDB-compatible value variant for testing.
Used by both MockVectorWriter and MockVectorReader to represent the
typed values in a column without requiring a live DuckDB runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
I8(i8)
TINYINT / INT8
I16(i16)
SMALLINT / INT16
I32(i32)
INTEGER / INT32
I64(i64)
BIGINT / INT64
U8(u8)
UTINYINT / UINT8
U16(u16)
USMALLINT / UINT16
U32(u32)
UINTEGER / UINT32
U64(u64)
UBIGINT / UINT64
F32(f32)
FLOAT
F64(f64)
DOUBLE
Bool(bool)
BOOLEAN
I128(i128)
HUGEINT
Varchar(String)
VARCHAR
Blob(Vec<u8>)
BLOB
Interval(DuckInterval)
INTERVAL
Trait Implementations§
Source§impl Clone for MockDuckValue
impl Clone for MockDuckValue
Source§fn clone(&self) -> MockDuckValue
fn clone(&self) -> MockDuckValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockDuckValue
impl Debug for MockDuckValue
Source§impl PartialEq for MockDuckValue
impl PartialEq for MockDuckValue
impl StructuralPartialEq for MockDuckValue
Auto Trait Implementations§
impl Freeze for MockDuckValue
impl RefUnwindSafe for MockDuckValue
impl Send for MockDuckValue
impl Sync for MockDuckValue
impl Unpin for MockDuckValue
impl UnsafeUnpin for MockDuckValue
impl UnwindSafe for MockDuckValue
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