Trait PulsedOp

Source
pub trait PulsedOp:
    Op
    + Debug
    + DynClone
    + Send
    + Sync
    + 'static
    + Downcast
    + EvalOp {
    // Required methods
    fn as_op(&self) -> &dyn Op;
    fn as_op_mut(&mut self) -> &mut dyn Op;
    fn to_typed(&self) -> Box<dyn TypedOp>;
    fn pulsed_output_facts(
        &self,
        inputs: &[&PulsedFact],
    ) -> TractResult<TVec<PulsedFact>>;
}

Required Methods§

Source

fn as_op(&self) -> &dyn Op

Reinterpret the PulsedOp as an Op.

Source

fn as_op_mut(&mut self) -> &mut dyn Op

Reinterpret the PulsedOp as an Op, mutably.

Source

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

Reinterpret the PulsedOp as an TypedOp.

Source

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Deduce output facts from input facts.

Trait Implementations§

Source§

impl AsMut<dyn Op> for Box<dyn PulsedOp>

Source§

fn as_mut(&mut self) -> &mut dyn Op

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<dyn Op> for dyn PulsedOp

Source§

fn as_mut(&mut self) -> &mut dyn Op

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<dyn Op> for Box<dyn PulsedOp>

Source§

fn as_ref(&self) -> &dyn Op

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<dyn Op> for dyn PulsedOp

Source§

fn as_ref(&self) -> &dyn Op

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Display for Box<dyn PulsedOp>

Source§

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

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

impl<O: PulsedOp> From<O> for Box<dyn PulsedOp>

Source§

fn from(it: O) -> Box<dyn PulsedOp>

Converts to this type from the input type.

Implementations on Foreign Types§

Source§

impl PulsedOp for DeconvDelay

Source§

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Source§

fn as_op(&self) -> &dyn Op

Source§

fn as_op_mut(&mut self) -> &mut dyn Op

Source§

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

Source§

impl PulsedOp for Delay

Source§

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Source§

fn as_op(&self) -> &dyn Op

Source§

fn as_op_mut(&mut self) -> &mut dyn Op

Source§

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

Source§

impl PulsedOp for PulseMask

Source§

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Source§

fn as_op(&self) -> &dyn Op

Source§

fn as_op_mut(&mut self) -> &mut dyn Op

Source§

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

Source§

impl PulsedOp for PulsePad

Source§

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Source§

fn as_op(&self) -> &dyn Op

Source§

fn as_op_mut(&mut self) -> &mut dyn Op

Source§

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

Source§

impl PulsedOp for PulsedAxisSlice

Source§

fn pulsed_output_facts( &self, inputs: &[&PulsedFact], ) -> TractResult<TVec<PulsedFact>>

Source§

fn as_op(&self) -> &dyn Op

Source§

fn as_op_mut(&mut self) -> &mut dyn Op

Source§

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

Implementors§