pub struct DfppPlugin;
Expand description
A struct so we can implement rustc_plugin::RustcPlugin
Trait Implementations§
Source§impl RustcPlugin for DfppPlugin
impl RustcPlugin for DfppPlugin
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
fn reported_driver_version(&self) -> Cow<'static, str>
fn hash_config(&self, args: &Self::Args, hasher: &mut impl Hasher)
Source§fn args(&self, _target_dir: &Utf8Path) -> RustcPluginArgs<Self::Args>
fn args(&self, _target_dir: &Utf8Path) -> RustcPluginArgs<Self::Args>
Parses and returns the CLI arguments for the plugin.
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 Freeze for DfppPlugin
impl RefUnwindSafe for DfppPlugin
impl Send for DfppPlugin
impl Sync for DfppPlugin
impl Unpin for DfppPlugin
impl UnwindSafe for DfppPlugin
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more