#[repr(transparent)]pub struct LogicalType(pub u8);Expand description
Structured logical type for a column. Added in plan format 0.3.0 alongside the deprecated string field.
Tuple Fields§
§0: u8Implementations§
Source§impl LogicalType
impl LogicalType
pub const unknown: Self
pub const bool: Self
pub const int64: Self
pub const float64: Self
pub const string: Self
pub const null: Self
pub const list: Self
pub const map: Self
pub const node_ref: Self
pub const rel_ref: Self
pub const path: Self
pub const vector: Self
pub const ENUM_MIN: u8 = 0
pub const ENUM_MAX: u8 = 11
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl Clone for LogicalType
impl Clone for LogicalType
Source§fn clone(&self) -> LogicalType
fn clone(&self) -> LogicalType
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 LogicalType
impl Debug for LogicalType
Source§impl Default for LogicalType
impl Default for LogicalType
Source§fn default() -> LogicalType
fn default() -> LogicalType
Returns the “default value” for a type. Read more
Source§impl EndianScalar for LogicalType
impl EndianScalar for LogicalType
Source§impl<'a> Follow<'a> for LogicalType
impl<'a> Follow<'a> for LogicalType
Source§impl Hash for LogicalType
impl Hash for LogicalType
Source§impl Ord for LogicalType
impl Ord for LogicalType
Source§fn cmp(&self, other: &LogicalType) -> Ordering
fn cmp(&self, other: &LogicalType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for LogicalType
impl PartialEq for LogicalType
Source§impl PartialOrd for LogicalType
impl PartialOrd for LogicalType
Source§impl Push for LogicalType
impl Push for LogicalType
Source§impl<'a> Verifiable for LogicalType
impl<'a> Verifiable for LogicalType
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for LogicalType
impl Eq for LogicalType
impl SimpleToVerifyInSlice for LogicalType
impl StructuralPartialEq for LogicalType
Auto Trait Implementations§
impl Freeze for LogicalType
impl RefUnwindSafe for LogicalType
impl Send for LogicalType
impl Sync for LogicalType
impl Unpin for LogicalType
impl UnsafeUnpin for LogicalType
impl UnwindSafe for LogicalType
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