pub struct ProvableQueryResult { /* private fields */ }
Expand description
An intermediate form of a query result that can be transformed to either the finalized query result form or a query error
Implementations§
source§impl ProvableQueryResult
impl ProvableQueryResult
sourcepub fn num_columns(&self) -> usize
pub fn num_columns(&self) -> usize
The number of columns in the result
sourcepub fn new<'a, S: Scalar>(
indexes: &'a Indexes,
columns: &'a [Column<'a, S>],
) -> Self
pub fn new<'a, S: Scalar>( indexes: &'a Indexes, columns: &'a [Column<'a, S>], ) -> Self
Form intermediate query result from index rows and result columns
sourcepub fn evaluate<S: Scalar>(
&self,
evaluation_point: &[S],
table_length: usize,
column_result_fields: &[ColumnField],
) -> Result<Vec<S>, QueryError>
pub fn evaluate<S: Scalar>( &self, evaluation_point: &[S], table_length: usize, column_result_fields: &[ColumnField], ) -> Result<Vec<S>, QueryError>
Given an evaluation vector, compute the evaluation of the intermediate result columns as spare multilinear extensions
sourcepub fn to_owned_table<S: Scalar>(
&self,
column_result_fields: &[ColumnField],
) -> Result<OwnedTable<S>, QueryError>
pub fn to_owned_table<S: Scalar>( &self, column_result_fields: &[ColumnField], ) -> Result<OwnedTable<S>, QueryError>
Convert the intermediate query result into a final query result
The result is essentially an OwnedTable
type.
Trait Implementations§
source§impl Clone for ProvableQueryResult
impl Clone for ProvableQueryResult
source§fn clone(&self) -> ProvableQueryResult
fn clone(&self) -> ProvableQueryResult
Returns a copy 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 Default for ProvableQueryResult
impl Default for ProvableQueryResult
source§fn default() -> ProvableQueryResult
fn default() -> ProvableQueryResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProvableQueryResult
impl<'de> Deserialize<'de> for ProvableQueryResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProvableQueryResult
impl RefUnwindSafe for ProvableQueryResult
impl Send for ProvableQueryResult
impl Sync for ProvableQueryResult
impl Unpin for ProvableQueryResult
impl UnwindSafe for ProvableQueryResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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