pub struct JsPlugin { /* private fields */ }Expand description
JavaScript-based plugin implementation.
Implementations§
Trait Implementations§
Source§impl Plugin for JsPlugin
impl Plugin for JsPlugin
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns the description of the plugin.
Returns the author of the plugin.
Source§fn on_init(&self, _ctx: Arc<NargoContext>, _config: &PluginConfig) -> Result<()>
fn on_init(&self, _ctx: Arc<NargoContext>, _config: &PluginConfig) -> Result<()>
Called when the plugin is initialized.
Source§fn on_pre_transform(&self, _code: &str) -> Result<Option<String>>
fn on_pre_transform(&self, _code: &str) -> Result<Option<String>>
Called before transform phase.
Source§fn on_post_transform(&self, _code: &str) -> Result<Option<String>>
fn on_post_transform(&self, _code: &str) -> Result<Option<String>>
Called after transform phase.
Source§fn on_cleanup(&self) -> Result<()>
fn on_cleanup(&self) -> Result<()>
Called during cleanup phase.
Auto Trait Implementations§
impl Freeze for JsPlugin
impl RefUnwindSafe for JsPlugin
impl Send for JsPlugin
impl Sync for JsPlugin
impl Unpin for JsPlugin
impl UnsafeUnpin for JsPlugin
impl UnwindSafe for JsPlugin
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