#[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 BinaryView: Self
pub const Utf8View: Self
pub const ListView: Self
pub const LargeListView: Self
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 26u8
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 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