pub struct RustCallback { /* private fields */ }Implementations§
Source§impl RustCallback
impl RustCallback
pub fn new_fn<F>(f: F) -> RustCallback
pub fn new_fn_mut<F>(f: F) -> RustCallback
pub fn call( &self, data: &mut DecodedData<'_>, encoder: &mut EncodedData, ) -> Result<(), DecodeError>
Trait Implementations§
Source§impl Clone for RustCallback
impl Clone for RustCallback
Source§fn clone(&self) -> RustCallback
fn clone(&self) -> RustCallback
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RustCallback
impl !Send for RustCallback
impl !Sync for RustCallback
impl !UnwindSafe for RustCallback
impl Freeze for RustCallback
impl Unpin for RustCallback
impl UnsafeUnpin for RustCallback
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