#[non_exhaustive]pub enum SimpleNullKind {
Show 14 variants
Boolean,
Byte,
Short,
Int,
Long,
Float,
Double,
Timestamp,
TimestampNanos,
Date,
Uuid,
Long256,
Char,
Ipv4,
}Expand description
Column kinds whose null wire encoding is the simple no-args form
[type_code, null_flag=0x01, bitmap=0x01] — no column-level
metadata, no offsets array. Acts as the type-system constraint on
Bind::Null: kinds excluded here either need extra metadata
(DECIMAL* scale, GEOHASH precision_bits) or have a different null
layout (VARCHAR, BINARY) and use a dedicated Null* variant.
SYMBOL, DOUBLE_ARRAY, LONG_ARRAY are excluded — see PHASE 1 SERVER COMPATIBILITY block at the top of this module for the server-side
rationale and the conditions under which each may be re-enabled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Implementations§
Source§impl SimpleNullKind
impl SimpleNullKind
Sourcepub fn as_column_kind(self) -> ColumnKind
pub fn as_column_kind(self) -> ColumnKind
The corresponding ColumnKind.
Trait Implementations§
Source§impl Clone for SimpleNullKind
impl Clone for SimpleNullKind
Source§fn clone(&self) -> SimpleNullKind
fn clone(&self) -> SimpleNullKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SimpleNullKind
Source§impl Debug for SimpleNullKind
impl Debug for SimpleNullKind
impl Eq for SimpleNullKind
Source§impl PartialEq for SimpleNullKind
impl PartialEq for SimpleNullKind
impl StructuralPartialEq for SimpleNullKind
Source§impl TryFrom<ColumnKind> for SimpleNullKind
impl TryFrom<ColumnKind> for SimpleNullKind
Source§fn try_from(k: ColumnKind) -> Result<Self, Self::Error>
fn try_from(k: ColumnKind) -> Result<Self, Self::Error>
Returns the input kind in Err when it’s not a simple-null kind, so
the caller can build a context-rich error message pointing at the
dedicated variant the user needed.
Source§type Error = ColumnKind
type Error = ColumnKind
Auto Trait Implementations§
impl Freeze for SimpleNullKind
impl RefUnwindSafe for SimpleNullKind
impl Send for SimpleNullKind
impl Sync for SimpleNullKind
impl Unpin for SimpleNullKind
impl UnsafeUnpin for SimpleNullKind
impl UnwindSafe for SimpleNullKind
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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