#[repr(u8)]pub enum PType {
Bool = 1,
U8 = 2,
U16 = 3,
U32 = 4,
U64 = 5,
U128 = 6,
I32 = 7,
I64 = 8,
F32 = 9,
F64 = 10,
Utf8 = 11,
Bytes = 12,
}Expand description
Primitive column value types.
Variants§
Bool = 1
U8 = 2
U16 = 3
U32 = 4
U64 = 5
U128 = 6
I32 = 7
I64 = 8
F32 = 9
F64 = 10
Utf8 = 11
Bytes = 12
Implementations§
Source§impl PType
impl PType
pub fn from_u8(v: u8) -> Result<Self, FormatError>
pub const fn name(self) -> &'static str
Sourcepub const fn fixed_byte_width(self) -> Option<usize>
pub const fn fixed_byte_width(self) -> Option<usize>
Fixed byte width for Plain array encoding (None for Bool/Utf8/Bytes).
Sourcepub const fn supports_delta(self) -> bool
pub const fn supports_delta(self) -> bool
Whether EncMode::Delta is supported for this type.
Trait Implementations§
impl Copy for PType
impl Eq for PType
Source§impl Ord for PType
impl Ord for PType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PType
impl PartialOrd for PType
impl StructuralPartialEq for PType
Auto Trait Implementations§
impl Forget for PType
impl Freeze for PType
impl Move for PType
impl RefUnwindSafe for PType
impl Send for PType
impl Sync for PType
impl Unpin for PType
impl UnsafeUnpin for PType
impl UnwindSafe for PType
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