pub struct JsExportSpec { /* private fields */ }Implementations§
Source§impl JsExportSpec
impl JsExportSpec
pub const fn new( name: &'static str, handler: fn(&mut DecodedData<'_>) -> Result<EncodedData, String>, ) -> JsExportSpec
Trait Implementations§
Source§impl Clone for JsExportSpec
impl Clone for JsExportSpec
Source§fn clone(&self) -> JsExportSpec
fn clone(&self) -> JsExportSpec
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 moreimpl Collect for JsExportSpec
impl Copy for JsExportSpec
Auto Trait Implementations§
impl Freeze for JsExportSpec
impl RefUnwindSafe for JsExportSpec
impl Send for JsExportSpec
impl Sync for JsExportSpec
impl Unpin for JsExportSpec
impl UnsafeUnpin for JsExportSpec
impl UnwindSafe for JsExportSpec
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