Struct arrow_ipc::gen::Schema::BinaryView
source · pub struct BinaryView<'a> {
pub _tab: Table<'a>,
}
Expand description
Logically the same as Binary, but the internal representation uses a view struct that contains the string length and either the string’s entire data inline (for small strings) or an inlined prefix, an index of another buffer, and an offset pointing to a slice in that buffer (for non-small strings).
Since it uses a variable number of data buffers, each Field with this type
must have a corresponding entry in variadicBufferCounts
.
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> BinaryView<'a>
impl<'a> BinaryView<'a>
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, _args: &'args BinaryViewArgs, ) -> WIPOffset<BinaryView<'bldr>>
Trait Implementations§
source§impl<'a> Clone for BinaryView<'a>
impl<'a> Clone for BinaryView<'a>
source§fn clone(&self) -> BinaryView<'a>
fn clone(&self) -> BinaryView<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BinaryView<'_>
impl Debug for BinaryView<'_>
source§impl<'a> Follow<'a> for BinaryView<'a>
impl<'a> Follow<'a> for BinaryView<'a>
source§impl<'a> PartialEq for BinaryView<'a>
impl<'a> PartialEq for BinaryView<'a>
source§fn eq(&self, other: &BinaryView<'a>) -> bool
fn eq(&self, other: &BinaryView<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Verifiable for BinaryView<'_>
impl Verifiable for BinaryView<'_>
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<'a> Copy for BinaryView<'a>
impl<'a> StructuralPartialEq for BinaryView<'a>
Auto Trait Implementations§
impl<'a> Freeze for BinaryView<'a>
impl<'a> RefUnwindSafe for BinaryView<'a>
impl<'a> Send for BinaryView<'a>
impl<'a> Sync for BinaryView<'a>
impl<'a> Unpin for BinaryView<'a>
impl<'a> UnwindSafe for BinaryView<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)