Skip to main content

Runnable

Struct Runnable 

Source
pub struct Runnable(/* private fields */);

Trait Implementations§

Source§

impl Debug for Runnable

Source§

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

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

impl Drop for Runnable

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl RunnableInterface for Runnable

Source§

type Tensor = Tensor

Source§

type State = State

Source§

type Fact = Fact

Source§

fn run(&self, inputs: impl IntoInputs<Tensor>) -> Result<Vec<Tensor>>

Source§

fn spawn_state(&self) -> Result<State>

Source§

fn input_count(&self) -> Result<usize>

Source§

fn output_count(&self) -> Result<usize>

Source§

fn input_fact(&self, id: usize) -> Result<Self::Fact>

Source§

fn output_fact(&self, id: usize) -> Result<Self::Fact>

Source§

fn property_keys(&self) -> Result<Vec<String>>

Source§

fn property(&self, name: impl AsRef<str>) -> Result<Tensor>

Source§

fn cost_json(&self) -> Result<String>

Source§

fn profile_json<I, IV, IE>(&self, inputs: Option<I>) -> Result<String>
where I: IntoIterator<Item = IV>, IV: TryInto<Self::Tensor, Error = IE>, IE: Into<Error>,

Source§

fn input_facts(&self) -> Result<impl Iterator<Item = Self::Fact>, Error>

Source§

fn output_facts(&self) -> Result<impl Iterator<Item = Self::Fact>, Error>

Source§

impl Send for Runnable

Source§

impl Sync for Runnable

Auto Trait Implementations§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.