pub struct BinaryArray { /* private fields */ }Expand description
A binary array. FixedBinary uses the same representation and carries its
width in the corresponding schema column.
Implementations§
Source§impl BinaryArray
impl BinaryArray
Sourcepub fn new(values: Vec<Vec<u8>>, validity: Option<Vec<bool>>) -> Self
pub fn new(values: Vec<Vec<u8>>, validity: Option<Vec<bool>>) -> Self
Construct a variable- or fixed-width binary array with an optional row-validity bitmap.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn values(&self) -> &[Vec<u8>]
pub fn validity(&self) -> Option<&[bool]>
Trait Implementations§
Source§impl Clone for BinaryArray
impl Clone for BinaryArray
Source§fn clone(&self) -> BinaryArray
fn clone(&self) -> BinaryArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinaryArray
impl Debug for BinaryArray
impl Eq for BinaryArray
Source§impl PartialEq for BinaryArray
impl PartialEq for BinaryArray
impl StructuralPartialEq for BinaryArray
Auto Trait Implementations§
impl Freeze for BinaryArray
impl RefUnwindSafe for BinaryArray
impl Send for BinaryArray
impl Sync for BinaryArray
impl Unpin for BinaryArray
impl UnsafeUnpin for BinaryArray
impl UnwindSafe for BinaryArray
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