pub struct Wrapper { /* private fields */ }
Expand description
A dart wrapper around our function declarations.
Wrapper
is created from the rust syn::ItemFn
we want to wrap in Dart. The wrapper calls the
inner function after sanitizing input/outputs. It will also transform any Result::Err
variants returned into a Dart exception. This Wrapper
contains all metadata necessary for
generation of the wrapper.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wrapper
impl RefUnwindSafe for Wrapper
impl Send for Wrapper
impl Sync for Wrapper
impl Unpin for Wrapper
impl UnwindSafe for Wrapper
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