#[repr(transparent)]pub struct Type(pub u8);
Expand description
Top-level Type value, enabling extensible type-specific metadata. We can add new logical types to Type without breaking backwards compatibility
Tuple Fields§
§0: u8
Implementations§
source§impl Type
impl Type
pub const NONE: Self = _
pub const Null: Self = _
pub const Int: Self = _
pub const FloatingPoint: Self = _
pub const Binary: Self = _
pub const Utf8: Self = _
pub const Bool: Self = _
pub const Decimal: Self = _
pub const Date: Self = _
pub const Time: Self = _
pub const Timestamp: Self = _
pub const Interval: Self = _
pub const List: Self = _
pub const Struct_: Self = _
pub const Union: Self = _
pub const FixedSizeBinary: Self = _
pub const FixedSizeList: Self = _
pub const Map: Self = _
pub const Duration: Self = _
pub const LargeBinary: Self = _
pub const LargeUtf8: Self = _
pub const LargeList: Self = _
pub const RunEndEncoded: Self = _
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 22u8
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 EndianScalar for Type
impl EndianScalar for Type
source§impl Ord for Type
impl Ord for Type
source§impl PartialEq for Type
impl PartialEq for Type
source§impl PartialOrd for Type
impl PartialOrd for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Verifiable for Type
impl<'a> Verifiable for Type
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 Type
impl Eq for Type
impl SimpleToVerifyInSlice for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more