pub enum ExportKind {
Native,
Wstp,
Wxf,
}Expand description
Which export transport a function uses. Mirrors the three #[export] modes
and the kind string stored in FunctionEntry.
Variants§
Native
Native MArgument-based export.
Wstp
WSTP LinkObject-based export.
Wxf
Typed-args WXF-based export.
Implementations§
Source§impl ExportKind
impl ExportKind
Sourcepub fn from_kind_str(s: &str) -> Option<ExportKind>
pub fn from_kind_str(s: &str) -> Option<ExportKind>
Parse the kind string stored in a FunctionEntry; None if unknown.
Trait Implementations§
Source§impl Clone for ExportKind
impl Clone for ExportKind
Source§fn clone(&self) -> ExportKind
fn clone(&self) -> ExportKind
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 Copy for ExportKind
Source§impl Debug for ExportKind
impl Debug for ExportKind
impl Eq for ExportKind
Source§impl PartialEq for ExportKind
impl PartialEq for ExportKind
Source§fn eq(&self, other: &ExportKind) -> bool
fn eq(&self, other: &ExportKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExportKind
Auto Trait Implementations§
impl Freeze for ExportKind
impl RefUnwindSafe for ExportKind
impl Send for ExportKind
impl Sync for ExportKind
impl Unpin for ExportKind
impl UnsafeUnpin for ExportKind
impl UnwindSafe for ExportKind
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