pub struct SimpleOperatorAdapter { /* private fields */ }Expand description
An adapter that converts between the simple owned-value API and the arena-based API
This adapter wraps a function that works with owned DataValues and implements the CustomOperator trait, handling all arena allocation details internally.
Implementations§
Source§impl SimpleOperatorAdapter
impl SimpleOperatorAdapter
Sourcepub fn new(name: &str, function: SimpleOperatorFn) -> Self
pub fn new(name: &str, function: SimpleOperatorFn) -> Self
Create a new adapter wrapping a simple operator function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleOperatorAdapter
impl RefUnwindSafe for SimpleOperatorAdapter
impl Send for SimpleOperatorAdapter
impl Sync for SimpleOperatorAdapter
impl Unpin for SimpleOperatorAdapter
impl UnwindSafe for SimpleOperatorAdapter
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