pub struct Dispatch { /* private fields */ }Expand description
Determines which output file each FFI item is placed in.
Implementations§
Source§impl Dispatch
impl Dispatch
Sourcepub fn custom(f: impl FnMut(Item, Meta) -> Target + 'static) -> Self
pub fn custom(f: impl FnMut(Item, Meta) -> Target + 'static) -> Self
Creates a dispatcher with a custom routing function.
Sourcepub fn single_file(ns: impl AsRef<str> + 'static) -> Self
pub fn single_file(ns: impl AsRef<str> + 'static) -> Self
Puts everything into a single Interop.cs file with the given namespace.
pub fn plugin_defaults_with(name: impl Into<String>) -> Self
Available on crate feature
unstable-plugins only.Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Dispatch
impl !Send for Dispatch
impl !Sync for Dispatch
impl !UnwindSafe for Dispatch
impl Freeze for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
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