pub struct DoubleToTriOp<T>where
T: Copy + Display + Mul<T, Output = T> + Add<T, Output = T> + Sub<T, Output = T> + Debug + Send + Sync,{ /* private fields */ }Trait Implementations§
Source§impl<T> Debug for DoubleToTriOp<T>
impl<T> Debug for DoubleToTriOp<T>
Source§impl<T> DefaultName for DoubleToTriOp<T>
impl<T> DefaultName for DoubleToTriOp<T>
Source§fn default_name() -> Cow<'static, str>
fn default_name() -> Cow<'static, str>
Returns the default name for an item.
Cow<'static, str> allows owned or static string.Source§impl<T> Named for DoubleToTriOp<T>
impl<T> Named for DoubleToTriOp<T>
Source§impl<T> Operator<DoubleToTriOpIO<T>> for DoubleToTriOp<T>
impl<T> Operator<DoubleToTriOpIO<T>> for DoubleToTriOp<T>
Source§fn output_port_connection_required(&self, port: usize) -> bool
fn output_port_connection_required(&self, port: usize) -> bool
NOTE: typically, we do not require that outputs from any given operator be connected. perhaps this design choice may be changed in the future
Source§fn opcode(&self) -> Arc<dyn OpCode>
fn opcode(&self) -> Arc<dyn OpCode>
Returns the operation code, which can be used to inform
specialized handling or diagnostics.
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
How many actual inputs does this operator need?
Source§fn output_count(&self) -> usize
fn output_count(&self) -> usize
How many outputs does this operator produce?
Source§fn input_port_type_str(&self, port: usize) -> Option<&'static str>
fn input_port_type_str(&self, port: usize) -> Option<&'static str>
used by the network! dag compiler to verify that the input port of one operator is
compatible with the data flowing into it from the output port of another operator
Source§fn output_port_type_str(&self, port: usize) -> Option<&'static str>
fn output_port_type_str(&self, port: usize) -> Option<&'static str>
used by the network! dag compiler to verify that the output port of one operator is
compatible with the data required by the input port of its downstream operator
Source§fn input_port_connection_required(&self, port: usize) -> bool
fn input_port_connection_required(&self, port: usize) -> bool
used by the network! dag compiler to verify that this input port needs an output connection
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execute_inputs: [Option<&'life1 DoubleToTriOpIO<T>>; 4],
execute_outputs: &'life2 mut [Option<DoubleToTriOpIO<T>>; 4],
) -> Pin<Box<dyn Future<Output = NetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execute_inputs: [Option<&'life1 DoubleToTriOpIO<T>>; 4],
execute_outputs: &'life2 mut [Option<DoubleToTriOpIO<T>>; 4],
) -> Pin<Box<dyn Future<Output = NetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
The big 4×4 method:
You receive up to 4 inputs and must fill up to 4 outputs.
Source§impl<T> ResetName for DoubleToTriOp<T>
impl<T> ResetName for DoubleToTriOp<T>
Auto Trait Implementations§
impl<T> Freeze for DoubleToTriOp<T>
impl<T> RefUnwindSafe for DoubleToTriOp<T>where
T: RefUnwindSafe,
impl<T> Send for DoubleToTriOp<T>
impl<T> Sync for DoubleToTriOp<T>
impl<T> Unpin for DoubleToTriOp<T>where
T: Unpin,
impl<T> UnwindSafe for DoubleToTriOp<T>where
T: UnwindSafe,
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