Struct re_types::ArrowBuffer
source · pub struct ArrowBuffer<T>(pub Buffer<T>);Expand description
Convenience-wrapper around an arrow Buffer that is known to contain a
a primitive type.
The arrow2 Buffer object is internally reference-counted and can be
easily converted back to a &[T] referencing the underlying storage.
This avoids some of the lifetime complexities that would otherwise
arise from returning a &[T] directly, but is significantly more
performant than doing the full allocation necessary to return a Vec<T>.
Tuple Fields§
§0: Buffer<T>Implementations§
source§impl<T> ArrowBuffer<T>
impl<T> ArrowBuffer<T>
Trait Implementations§
source§impl<T: Clone> Clone for ArrowBuffer<T>
impl<T: Clone> Clone for ArrowBuffer<T>
source§fn clone(&self) -> ArrowBuffer<T>
fn clone(&self) -> ArrowBuffer<T>
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<T: Debug> Debug for ArrowBuffer<T>
impl<T: Debug> Debug for ArrowBuffer<T>
source§impl<T: Default> Default for ArrowBuffer<T>
impl<T: Default> Default for ArrowBuffer<T>
source§fn default() -> ArrowBuffer<T>
fn default() -> ArrowBuffer<T>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq> PartialEq<ArrowBuffer<T>> for ArrowBuffer<T>
impl<T: PartialEq> PartialEq<ArrowBuffer<T>> for ArrowBuffer<T>
source§fn eq(&self, other: &ArrowBuffer<T>) -> bool
fn eq(&self, other: &ArrowBuffer<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> StructuralPartialEq for ArrowBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ArrowBuffer<T>where T: RefUnwindSafe,
impl<T> Send for ArrowBuffer<T>where T: Send + Sync,
impl<T> Sync for ArrowBuffer<T>where T: Send + Sync,
impl<T> Unpin for ArrowBuffer<T>
impl<T> UnwindSafe for ArrowBuffer<T>where T: RefUnwindSafe,
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