pub struct CompiledRotation {
func_ptr: SyncFnPtr,
schema: ContextSchema,
pub(crate) rotation: Rotation,
pub(crate) resolver: SpecResolver,
_bundle: LlvmBundle,
}Fields§
§func_ptr: SyncFnPtr§schema: ContextSchema§rotation: Rotation§resolver: SpecResolver§_bundle: LlvmBundleImplementations§
Source§impl CompiledRotation
impl CompiledRotation
Sourcepub fn compile_json(json: &str, resolver: &SpecResolver) -> Result<Self>
pub fn compile_json(json: &str, resolver: &SpecResolver) -> Result<Self>
Parses, validates, and JIT-compiles a rotation.
§Errors
Returns an error when parsing, lowering, or native compilation fails.
Sourcepub fn compile(rotation: &Rotation, resolver: &SpecResolver) -> Result<Self>
pub fn compile(rotation: &Rotation, resolver: &SpecResolver) -> Result<Self>
JIT-compiles an already parsed rotation.
§Errors
Returns an error when lowering or native compilation fails.
fn compile_resolved( rotation: &Rotation, resolver: &SpecResolver, ) -> Result<Self>
Trait Implementations§
Source§impl Debug for CompiledRotation
impl Debug for CompiledRotation
Source§impl RuntimeBackend for CompiledRotation
impl RuntimeBackend for CompiledRotation
fn evaluate(&mut self, buffer: &mut DenseBuffer, now_secs: f64) -> EvalResult
fn schema(&self) -> &ContextSchema
impl Send for CompiledRotation
Auto Trait Implementations§
impl Freeze for CompiledRotation
impl RefUnwindSafe for CompiledRotation
impl !Sync for CompiledRotation
impl Unpin for CompiledRotation
impl UnsafeUnpin for CompiledRotation
impl UnwindSafe for CompiledRotation
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