Skip to main content

EvaluateData

Struct EvaluateData 

Source
pub struct EvaluateData {
    pub bindings: IndexMap<usize, OperationResult>,
    pub ignored_unknown: Vec<String>,
    /* private fields */
}
Expand description

User-provided data values resolved against a plan’s type declarations.

Lightweight and cheap to construct — no plan cloning required. The ExecutionPlan stays immutable; callers pass (&ExecutionPlan, &EvaluateData) to evaluation and show paths.

Fields§

§bindings: IndexMap<usize, OperationResult>

Caller bindings by plan data slot, in caller order: successful literals or Veto (bad override) per Data.

§ignored_unknown: Vec<String>

Input keys that did not match any plan Data (including Import aliases).

Implementations§

Source§

impl EvaluateData

Source

pub fn resolve( plan: &ExecutionPlan, raw_values: IndexMap<String, EvaluateDataValue>, limits: &ResourceLimits, ) -> Result<Self, Error>

Parse and validate caller-supplied values against the plan’s data declarations.

Unknown keys and Import aliases are ignored (recorded in Self::ignored_unknown). Parse, constraint, options, decimals, and input-oversize failures bind that Data as OperationResult::Veto; evaluation still runs. Duplicate canonical keys Error.

Trait Implementations§

Source§

impl Clone for EvaluateData

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EvaluateData

Source§

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

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

impl Default for EvaluateData

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Forget for EvaluateData

§

impl Freeze for EvaluateData

§

impl Move for EvaluateData

§

impl RefUnwindSafe for EvaluateData

§

impl Send for EvaluateData
where RawTable<usize>: Send, RawVecInner: Send, Arc<str>: Send, BoxRaw<TypedLiteral>: Send, Arc<RowInstance>: Send, BoxRaw<InstanceKey>: Send, Arc<[TypedLiteral]>: Send, Arc<RowStore>: Send, Arc<LemmaType>: Send, Arc<KeyIndex>: Send, Arc<InstanceFactors>: Send, RawTable<(InstanceKey, Vec<(usize, RowBinding)>)>: Send, RawTable<((Option<InstanceKey>, DataPath), ())>: Send,

§

impl Sync for EvaluateData
where RawTable<usize>: Sync, RawVecInner: Sync, Arc<str>: Sync, BoxRaw<TypedLiteral>: Sync, Arc<RowInstance>: Sync, BoxRaw<InstanceKey>: Sync, Arc<[TypedLiteral]>: Sync, Arc<RowStore>: Sync, Arc<LemmaType>: Sync, Arc<KeyIndex>: Sync, Arc<InstanceFactors>: Sync, RawTable<(InstanceKey, Vec<(usize, RowBinding)>)>: Sync, RawTable<((Option<InstanceKey>, DataPath), ())>: Sync,

§

impl Unpin for EvaluateData
where *const u8 is !null: Unpin, Arc<str>: Unpin, Box<TypedLiteral>: Unpin, Arc<RowInstance>: Unpin, Box<InstanceKey>: Unpin, Arc<[TypedLiteral]>: Unpin, Arc<RowStore>: Unpin, Arc<LemmaType>: Unpin, Arc<KeyIndex>: Unpin, Arc<InstanceFactors>: Unpin,

§

impl UnsafeUnpin for EvaluateData

§

impl UnwindSafe for EvaluateData
where NonNull<u8>: UnwindSafe, RawVecInner: UnwindSafe, Arc<str>: UnwindSafe, BoxRaw<TypedLiteral>: UnwindSafe, Arc<RowInstance>: UnwindSafe, BoxRaw<InstanceKey>: UnwindSafe, Arc<[TypedLiteral]>: UnwindSafe, Arc<RowStore>: UnwindSafe, Arc<LemmaType>: UnwindSafe, Arc<KeyIndex>: UnwindSafe, Arc<InstanceFactors>: UnwindSafe, HashMap<InstanceKey, Vec<(usize, RowBinding)>>: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.