pub trait SegmentCallable<Args> {
type Output;
// Required method
fn call(&self, args: Args) -> Self::Output;
}Expand description
Callable segment abstraction for uniform invocation across arities.
This trait invokes statically typed stack segments; crate::Callable is
the separate shared native/interpreted value facade.
§Examples
use cel_runtime::{Segment, SegmentCallable};
let body = Segment::<()>::new().op0(|| 7i32);
assert_eq!(body.call(()).unwrap(), 7);Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".