pub struct ArrayParts { /* private fields */ }
Expand description
ArrayParts
represents the information from an ArrayData
that makes up the serialized
form. For example, it uses stores integer encoding IDs rather than a reference to an encoding
vtable, and it doesn’t store any DType
information.
An ArrayParts
can be fully decoded into an ArrayData
using the decode
function.
Implementations§
Source§impl ArrayParts
impl ArrayParts
Sourcepub fn new(
row_count: usize,
array: Array<'_>,
flatbuffer: FlatBuffer,
buffers: Vec<ByteBuffer>,
) -> Self
pub fn new( row_count: usize, array: Array<'_>, flatbuffer: FlatBuffer, buffers: Vec<ByteBuffer>, ) -> Self
Creates a new ArrayParts
from a flatbuffer view.
§Panics
This function will panic if the flatbuffer is not contained within the given FlatBuffer
.
Sourcepub fn decode(self, ctx: ContextRef, dtype: DType) -> VortexResult<ArrayData>
pub fn decode(self, ctx: ContextRef, dtype: DType) -> VortexResult<ArrayData>
Decode an ArrayParts
into an ArrayData
.
Trait Implementations§
Source§impl Debug for ArrayParts
impl Debug for ArrayParts
Auto Trait Implementations§
impl !Freeze for ArrayParts
impl RefUnwindSafe for ArrayParts
impl Send for ArrayParts
impl Sync for ArrayParts
impl Unpin for ArrayParts
impl UnwindSafe for ArrayParts
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more