#[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: Type
pub const Null: Type
pub const Int: Type
pub const FloatingPoint: Type
pub const Binary: Type
pub const Utf8: Type
pub const Bool: Type
pub const Decimal: Type
pub const Date: Type
pub const Time: Type
pub const Timestamp: Type
pub const Interval: Type
pub const List: Type
pub const Struct_: Type
pub const Union: Type
pub const FixedSizeBinary: Type
pub const FixedSizeList: Type
pub const Map: Type
pub const Duration: Type
pub const LargeBinary: Type
pub const LargeUtf8: Type
pub const LargeList: Type
pub const RunEndEncoded: Type
pub const BinaryView: Type
pub const Utf8View: Type
pub const ListView: Type
pub const LargeListView: Type
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 26u8
pub const ENUM_VALUES: &'static [Type]
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 PartialOrd for Type
impl PartialOrd for Type
Source§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 StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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