pub struct BFloat16Array { /* private fields */ }Expand description
An array of bfloat16 values
Note that bfloat16 is not the same thing as fp16 which is supported natively by arrow-rs.
Implementations§
Source§impl BFloat16Array
impl BFloat16Array
pub fn from_iter_values(iter: impl IntoIterator<Item = bf16>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_null(&self, i: usize) -> bool
pub fn null_count(&self) -> usize
pub fn iter(&self) -> BFloat16Iter<'_> ⓘ
pub fn value(&self, i: usize) -> bf16
Sourcepub unsafe fn value_unchecked(&self, i: usize) -> bf16
pub unsafe fn value_unchecked(&self, i: usize) -> bf16
§Safety
Caller must ensure that i < self.len()
pub fn into_inner(self) -> FixedSizeBinaryArray
Trait Implementations§
Source§impl Clone for BFloat16Array
impl Clone for BFloat16Array
Source§fn clone(&self) -> BFloat16Array
fn clone(&self) -> BFloat16Array
Returns a duplicate 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 BFloat16Array
impl Debug for BFloat16Array
Source§impl FromIterator<Option<bf16>> for BFloat16Array
impl FromIterator<Option<bf16>> for BFloat16Array
Source§impl FromIterator<bf16> for BFloat16Array
impl FromIterator<bf16> for BFloat16Array
Source§impl PartialEq for BFloat16Array
impl PartialEq for BFloat16Array
Source§impl TryFrom<FixedSizeBinaryArray> for BFloat16Array
impl TryFrom<FixedSizeBinaryArray> for BFloat16Array
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for BFloat16Array
impl RefUnwindSafe for BFloat16Array
impl Send for BFloat16Array
impl Sync for BFloat16Array
impl Unpin for BFloat16Array
impl UnwindSafe for BFloat16Array
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