pub struct Op {
pub descriptor: OpDescriptor,
pub params: ParsedParameters,
pub steps: Vec<Op>,
pub id: OpHandle,
}
Expand description
The defining parameters and functions for an operator
Fields§
§descriptor: OpDescriptor
§params: ParsedParameters
§steps: Vec<Op>
§id: OpHandle
Implementations§
source§impl Op
impl Op
pub fn apply( &self, ctx: &dyn Context, operands: &mut dyn CoordinateSet, direction: Direction ) -> usize
pub fn new(definition: &str, ctx: &dyn Context) -> Result<Op, Error>
pub fn plain( parameters: &RawParameters, fwd: InnerOp, inv: Option<InnerOp>, gamut: &[OpParameter], _ctx: &dyn Context ) -> Result<Op, Error>
pub fn op(parameters: RawParameters, ctx: &dyn Context) -> Result<Op, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl !RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl !UnwindSafe for Op
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