Struct aquascope_front::plugin::AquascopePlugin
source · pub struct AquascopePlugin;
Trait Implementations§
source§impl RustcPlugin for AquascopePlugin
impl RustcPlugin for AquascopePlugin
§type Args = AquascopePluginArgs
type Args = AquascopePluginArgs
Command-line arguments passed by the user.
source§fn driver_name(&self) -> Cow<'static, str>
fn driver_name(&self) -> Cow<'static, str>
Returns the name of your driver binary as it’s installed in the filesystem. Read more
source§fn args(&self, target_dir: &Utf8Path) -> RustcPluginArgs<AquascopePluginArgs>
fn args(&self, target_dir: &Utf8Path) -> RustcPluginArgs<AquascopePluginArgs>
Parses and returns the CLI arguments for the plugin.
source§fn run(
self,
compiler_args: Vec<String>,
plugin_args: AquascopePluginArgs
) -> RustcResult<()>
fn run( self, compiler_args: Vec<String>, plugin_args: AquascopePluginArgs ) -> RustcResult<()>
Executes the plugin with a set of compiler and plugin args.
source§fn modify_cargo(&self, _cargo: &mut Command, _args: &Self::Args)
fn modify_cargo(&self, _cargo: &mut Command, _args: &Self::Args)
Optionally modify the
cargo
command that launches rustc.
For example, you could pass a --feature
flag here.Auto Trait Implementations§
impl RefUnwindSafe for AquascopePlugin
impl Send for AquascopePlugin
impl Sync for AquascopePlugin
impl Unpin for AquascopePlugin
impl UnwindSafe for AquascopePlugin
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