pub struct InterpretedRotation {
rotation: Rotation,
resolver: SpecResolver,
schema: ContextSchema,
table: DescriptorTable,
sink: Option<DecisionTraceTarget>,
}Expand description
Interpreter backend (only choice on WASM; fallback on native without jit).
Fields§
§rotation: Rotation§resolver: SpecResolver§schema: ContextSchema§table: DescriptorTable§sink: Option<DecisionTraceTarget>Implementations§
Source§impl InterpretedRotation
impl InterpretedRotation
Sourcepub fn from_parts(
rotation: Rotation,
resolver: SpecResolver,
schema: ContextSchema,
) -> Self
pub fn from_parts( rotation: Rotation, resolver: SpecResolver, schema: ContextSchema, ) -> Self
Build an interpreter from an already-prepared ContextSchema.
Sourcepub fn compile_json(json: &str, resolver: &SpecResolver) -> Result<Self>
pub fn compile_json(json: &str, resolver: &SpecResolver) -> Result<Self>
Sourcepub fn compile(rotation: &Rotation, resolver: &SpecResolver) -> Result<Self>
pub fn compile(rotation: &Rotation, resolver: &SpecResolver) -> Result<Self>
Compile an already-parsed rotation.
§Errors
Returns an error when lowering or schema preparation fails.
Sourcepub fn set_sink(&mut self, sink: DecisionTraceTarget)
pub fn set_sink(&mut self, sink: DecisionTraceTarget)
Attach a decision-trace sink.
fn compile_inner(rotation: Rotation, resolver: &SpecResolver) -> Result<Self>
Trait Implementations§
Source§impl Debug for InterpretedRotation
impl Debug for InterpretedRotation
Source§impl RuntimeBackend for InterpretedRotation
impl RuntimeBackend for InterpretedRotation
fn evaluate(&mut self, buffer: &mut DenseBuffer, now_secs: f64) -> EvalResult
fn schema(&self) -> &ContextSchema
Auto Trait Implementations§
impl Freeze for InterpretedRotation
impl !RefUnwindSafe for InterpretedRotation
impl Send for InterpretedRotation
impl Sync for InterpretedRotation
impl Unpin for InterpretedRotation
impl UnsafeUnpin for InterpretedRotation
impl !UnwindSafe for InterpretedRotation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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