#[repr(transparent)]pub struct Feature(pub i64);
Expand description
Represents Arrow Features that might not have full support within implementations. This is intended to be used in two scenarios:
- A mechanism for readers of Arrow Streams and files to understand that the stream or file makes use of a feature that isn’t supported or unknown to the implementation (and therefore can meet the Arrow forward compatibility guarantees).
- A means of negotiating between a client and server what features a stream is allowed to use. The enums values here are intented to represent higher level features, additional details maybe negotiated with key-value pairs specific to the protocol.
Enums added to this list should be assigned power-of-two values to facilitate exchanging and comparing bitmaps for supported features.
Tuple Fields§
§0: i64
Implementations§
Source§impl Feature
impl Feature
Sourcepub const DICTIONARY_REPLACEMENT: Self = _
pub const DICTIONARY_REPLACEMENT: Self = _
The stream makes use of multiple full dictionaries with the same ID and assumes clients implement dictionary replacement correctly.
Sourcepub const COMPRESSED_BODY: Self = _
pub const COMPRESSED_BODY: Self = _
The stream makes use of compressed bodies as described in Message.fbs.
pub const ENUM_MIN: i64 = 0i64
pub const ENUM_MAX: i64 = 2i64
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 Feature
impl EndianScalar for Feature
Source§impl Ord for Feature
impl Ord for Feature
Source§impl PartialOrd for Feature
impl PartialOrd for Feature
Source§impl<'a> Verifiable for Feature
impl<'a> Verifiable for Feature
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 Feature
impl Eq for Feature
impl SimpleToVerifyInSlice for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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