pub struct Function<T> { /* private fields */ }Expand description
Dart closure that can be called from Rust.
Implementations§
Source§impl<T> Function<T>
impl<T> Function<T>
Sourcepub fn new(cb: DartOpaque) -> Self
pub fn new(cb: DartOpaque) -> Self
Creates a new Function from the provided Dart_Handle to a Dart
closure, and persists the provided Dart_Handle so it won’t be moved
by the Dart VM GC.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Function<T>
impl<T> RefUnwindSafe for Function<T>where
T: RefUnwindSafe,
impl<T> !Send for Function<T>
impl<T> !Sync for Function<T>
impl<T> Unpin for Function<T>
impl<T> UnwindSafe for Function<T>where
T: RefUnwindSafe,
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