Trait tract_core::model::SpecialOps[][src]

pub trait SpecialOps<F, O> {
    fn create_dummy(&self) -> O;
fn create_source(&self, fact: F) -> O;
fn is_source(op: &O) -> bool;
fn wire_node(
        &mut self,
        name: impl Into<String>,
        op: impl Into<O>,
        inputs: &[OutletId]
    ) -> TractResult<TVec<OutletId>>; }

Required methods

fn create_dummy(&self) -> O[src]

fn create_source(&self, fact: F) -> O[src]

fn is_source(op: &O) -> bool[src]

fn wire_node(
    &mut self,
    name: impl Into<String>,
    op: impl Into<O>,
    inputs: &[OutletId]
) -> TractResult<TVec<OutletId>>
[src]

Implementors

impl SpecialOps<TypedFact, Box<dyn TypedOp + 'static, Global>> for TypedModel[src]

fn is_source(op: &Box<dyn TypedOp>) -> bool[src]

fn create_dummy(&self) -> Box<dyn TypedOp>

Notable traits for Box<W, Global>

impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

fn create_source(&self, fact: TypedFact) -> Box<dyn TypedOp>

Notable traits for Box<W, Global>

impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

fn wire_node(
    &mut self,
    name: impl Into<String>,
    op: impl Into<Box<dyn TypedOp>>,
    inputs: &[OutletId]
) -> TractResult<TVec<OutletId>>
[src]