pub struct Exports { /* private fields */ }Expand description
A native plugin’s description and functions, for
export_dylib_plugin!.
Implementations§
Source§impl Exports
impl Exports
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
One line on what it does.
Sourcepub fn capability(
self,
kind: CapabilityKind,
name: &str,
function: ExportFn,
) -> Self
pub fn capability( self, kind: CapabilityKind, name: &str, function: ExportFn, ) -> Self
Add a capability of any kind.
Sourcepub fn transform(self, name: &str, function: ExportFn) -> Self
pub fn transform(self, name: &str, function: ExportFn) -> Self
A named text transform: plain text in and out.
Sourcepub fn highlighter(self, name: &str, function: ExportFn) -> Self
pub fn highlighter(self, name: &str, function: ExportFn) -> Self
A highlighter: plain text in, START END STYLE lines out.
Sourcepub fn fence_markup(self, language: &str, function: ExportFn) -> Self
pub fn fence_markup(self, language: &str, function: ExportFn) -> Self
A fence renderer for language returning rich markup.
Sourcepub fn fence_ansi(self, language: &str, function: ExportFn) -> Self
pub fn fence_ansi(self, language: &str, function: ExportFn) -> Self
A fence renderer for language returning ANSI-styled text.
Auto Trait Implementations§
impl Freeze for Exports
impl RefUnwindSafe for Exports
impl Send for Exports
impl Sync for Exports
impl Unpin for Exports
impl UnsafeUnpin for Exports
impl UnwindSafe for Exports
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