pub struct NativeExport { /* private fields */ }Implementations§
Source§impl NativeExport
impl NativeExport
pub fn new( name: impl Into<String>, params: Vec<NativeExportParam>, return_type: impl Into<String>, ) -> Self
pub fn with_doc(self, doc: impl Into<String>) -> Self
pub fn name(&self) -> &str
pub fn params(&self) -> &[NativeExportParam]
pub fn return_type(&self) -> &str
pub fn doc(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for NativeExport
impl Clone for NativeExport
Source§fn clone(&self) -> NativeExport
fn clone(&self) -> NativeExport
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for NativeExport
impl RefUnwindSafe for NativeExport
impl Send for NativeExport
impl Sync for NativeExport
impl Unpin for NativeExport
impl UnsafeUnpin for NativeExport
impl UnwindSafe for NativeExport
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