pub struct Operator<T> {
pub factory: &'static str,
pub body: Rc<dyn Fn(&Ctx)>,
pub opts: NodeOpts,
/* private fields */
}Expand description
A free-standing operator/source definition.
Fields§
§factory: &'static strfactory field for factory.
body: Rc<dyn Fn(&Ctx)>body field for body.
opts: NodeOptsopts field for opts.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Operator<T>
impl<T> !RefUnwindSafe for Operator<T>
impl<T> !Send for Operator<T>
impl<T> !Sync for Operator<T>
impl<T> Unpin for Operator<T>
impl<T> UnsafeUnpin for Operator<T>
impl<T> !UnwindSafe for Operator<T>
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