Trait tract_pulse::ops::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 + 'static> 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 + 'static> 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 + 'static> 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 + 'static> 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<'clone> Clone for Box<dyn PulsedOp + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn PulsedOp + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn PulsedOp + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn PulsedOp + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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 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>

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 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 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>

Implementors§