#[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