pub struct Runnable(/* private fields */);Trait Implementations§
Source§impl RunnableInterface for Runnable
impl RunnableInterface for Runnable
type Value = Value
type State = State
type Fact = Fact
fn run<I, V, E>(&self, inputs: I) -> Result<Vec<Value>>
fn spawn_state(&self) -> Result<State>
fn input_count(&self) -> Result<usize>
fn output_count(&self) -> Result<usize>
fn input_fact(&self, id: usize) -> Result<Self::Fact>
fn output_fact(&self, id: usize) -> Result<Self::Fact>
fn property_keys(&self) -> Result<Vec<String>>
fn property(&self, name: impl AsRef<str>) -> Result<Value>
fn cost_json(&self) -> Result<String>
fn profile_json<I, IV, IE, S, SV, SE>(
&self,
inputs: Option<I>,
state_initializers: Option<S>,
) -> Result<String>where
I: IntoIterator<Item = IV>,
IV: TryInto<Self::Value, Error = IE>,
IE: Into<Error>,
S: IntoIterator<Item = SV>,
SV: TryInto<Self::Value, Error = SE>,
SE: Into<Error>,
fn input_facts(&self) -> Result<impl Iterator<Item = Self::Fact>, Error>
fn output_facts(&self) -> Result<impl Iterator<Item = Self::Fact>, Error>
impl Send for Runnable
impl Sync for Runnable
Auto Trait Implementations§
impl Freeze for Runnable
impl RefUnwindSafe for Runnable
impl Unpin for Runnable
impl UnsafeUnpin for Runnable
impl UnwindSafe for Runnable
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