pub enum ColDecoder {
FixedInteger,
FixedFloat,
FixedBool,
FixedTimestamp,
VarText,
VarGeneric,
}Expand description
Schema-specialized column decoder — replaces per-column is_fixed() + ColumnType match.
Constructed once per scan from ColumnType slice. The match on this enum
in the hot loop allows the compiler to devirtualize via exhaustive match,
eliminating the indirect branch that ColumnType match would require.
Variants§
Trait Implementations§
Source§impl Clone for ColDecoder
impl Clone for ColDecoder
Source§fn clone(&self) -> ColDecoder
fn clone(&self) -> ColDecoder
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 moreimpl Copy for ColDecoder
Auto Trait Implementations§
impl Freeze for ColDecoder
impl RefUnwindSafe for ColDecoder
impl Send for ColDecoder
impl Sync for ColDecoder
impl Unpin for ColDecoder
impl UnsafeUnpin for ColDecoder
impl UnwindSafe for ColDecoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more