Struct PackVTable

Source
pub struct PackVTable;

Trait Implementations§

Source§

impl Debug for PackVTable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl VTable for PackVTable

Source§

type Expr = PackExpr

Source§

type Encoding = PackExprEncoding

Source§

type Metadata = ProstMetadata<PackOpts>

Source§

fn id(_encoding: &Self::Encoding) -> ExprId

Returns the ID of the expr encoding.
Source§

fn encoding(_expr: &Self::Expr) -> ExprEncodingRef

Returns the encoding for the expr.
Source§

fn metadata(expr: &Self::Expr) -> Option<Self::Metadata>

Returns the serialize-able metadata for the expr, or None if serialization is not supported.
Source§

fn children(expr: &Self::Expr) -> Vec<&ExprRef>

Returns the children of the expr.
Source§

fn with_children( expr: &Self::Expr, children: Vec<ExprRef>, ) -> VortexResult<Self::Expr>

Return a new instance of the expression with the children replaced. Read more
Source§

fn build( _encoding: &Self::Encoding, metadata: &<Self::Metadata as DeserializeMetadata>::Output, children: Vec<ExprRef>, ) -> VortexResult<Self::Expr>

Construct a new VortexExpr from the provided parts.
Source§

fn evaluate(expr: &Self::Expr, scope: &Scope) -> VortexResult<ArrayRef>

Evaluate the expression in the given scope.
Source§

fn return_dtype(expr: &Self::Expr, scope: &DType) -> VortexResult<DType>

Compute the return DType of the expression if evaluated in the given scope.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> ErasedDestructor for T
where T: 'static,