#[repr(u8)]pub enum PhysicalType {
Show 18 variants
Bool = 1,
Int64 = 2,
Int32 = 3,
Int16 = 4,
Int8 = 5,
UInt64 = 6,
UInt32 = 7,
UInt16 = 8,
UInt8 = 9,
Int128 = 10,
Float64 = 11,
Float32 = 12,
Interval = 13,
InternalId = 14,
String = 20,
List = 22,
Array = 23,
Struct = 24,
}Expand description
Physical storage representation of a value. Controls how bytes are laid out in columns and the Value union.
Discriminant values match the C++ PhysicalTypeID for on-disk compatibility.
Variants§
Bool = 1
Int64 = 2
Int32 = 3
Int16 = 4
Int8 = 5
UInt64 = 6
UInt32 = 7
UInt16 = 8
UInt8 = 9
Int128 = 10
Float64 = 11
Float32 = 12
Interval = 13
InternalId = 14
String = 20
List = 22
Array = 23
Struct = 24
Implementations§
Source§impl PhysicalType
impl PhysicalType
Sourcepub const fn fixed_size(&self) -> Option<usize>
pub const fn fixed_size(&self) -> Option<usize>
Size in bytes of the fixed-size inline representation.
Returns None for variable-length types (String, List, Struct).
Sourcepub const fn is_fixed_size(&self) -> bool
pub const fn is_fixed_size(&self) -> bool
Whether this type has a fixed size (stored inline in Value).
Trait Implementations§
Source§impl Clone for PhysicalType
impl Clone for PhysicalType
Source§fn clone(&self) -> PhysicalType
fn clone(&self) -> PhysicalType
Returns a duplicate of the value. Read more
1.0.0 · 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 PhysicalType
impl Debug for PhysicalType
Source§impl Display for PhysicalType
impl Display for PhysicalType
Source§impl Hash for PhysicalType
impl Hash for PhysicalType
Source§impl PartialEq for PhysicalType
impl PartialEq for PhysicalType
impl Copy for PhysicalType
impl Eq for PhysicalType
impl StructuralPartialEq for PhysicalType
Auto Trait Implementations§
impl Freeze for PhysicalType
impl RefUnwindSafe for PhysicalType
impl Send for PhysicalType
impl Sync for PhysicalType
impl Unpin for PhysicalType
impl UnsafeUnpin for PhysicalType
impl UnwindSafe for PhysicalType
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