pub struct EncodingAdapter<V: VTable>(/* private fields */);Expand description
Adapter struct used to lift the VTable trait into an object-safe Encoding
implementation.
Since this is a unit struct with repr(transparent), we are able to turn un-adapted array
structs into [dyn Encoding] using some cheeky casting inside std::ops::Deref and
AsRef. See the vtable! macro for more details.
Trait Implementations§
Source§impl<V: VTable> Debug for EncodingAdapter<V>
 
impl<V: VTable> Debug for EncodingAdapter<V>
Source§impl<V: VTable> Encoding for EncodingAdapter<V>
 
impl<V: VTable> Encoding for EncodingAdapter<V>
fn to_encoding(&self) -> EncodingRef
fn into_encoding(self) -> EncodingRefwhere
    Self: Sized,
Source§fn id(&self) -> EncodingId
 
fn id(&self) -> EncodingId
Returns the ID of the encoding.
Source§fn build(
    &self,
    dtype: &DType,
    len: usize,
    metadata: &[u8],
    buffers: &[ByteBuffer],
    children: &dyn ArrayChildren,
) -> VortexResult<ArrayRef>
 
fn build( &self, dtype: &DType, len: usize, metadata: &[u8], buffers: &[ByteBuffer], children: &dyn ArrayChildren, ) -> VortexResult<ArrayRef>
Build an array from its parts.
Auto Trait Implementations§
impl<V> Freeze for EncodingAdapter<V>
impl<V> RefUnwindSafe for EncodingAdapter<V>
impl<V> Send for EncodingAdapter<V>
impl<V> Sync for EncodingAdapter<V>
impl<V> Unpin for EncodingAdapter<V>
impl<V> UnwindSafe for EncodingAdapter<V>
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