pub enum PyInput<'a> {
Scalar(f64),
Vector(&'a [f64]),
}Expand description
One input value passed to a Python block’s own output/derivative function – a plain
scalar or a fixed-length vector, converted to a Python float/numpy.ndarray respectively.
Deliberately not general_mna::block_graph::SignalValue itself, to keep this crate free of
a dependency on general-mna – matching cscript-ffi’s own convention of taking plain
f64 slices and leaving any scalar/vector decision to the caller (dae-runtime).
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for PyInput<'a>
impl<'a> Freeze for PyInput<'a>
impl<'a> Move for PyInput<'a>
impl<'a> RefUnwindSafe for PyInput<'a>
impl<'a> Send for PyInput<'a>
impl<'a> Sync for PyInput<'a>
impl<'a> Unpin for PyInput<'a>
impl<'a> UnsafeUnpin for PyInput<'a>
impl<'a> UnwindSafe for PyInput<'a>
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