pub struct OverrideBuilder { /* private fields */ }Implementations§
Source§impl OverrideBuilder
impl OverrideBuilder
pub fn new(key: impl Into<String>) -> Self
pub fn file(self, path: PathBuf) -> Self
pub fn function(self, name: impl Into<String>) -> Self
pub fn line_range(self, start: usize, end: usize) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn cargo_option(self, option: impl Into<String>) -> Self
pub fn rustc_option(self, option: impl Into<String>) -> Self
pub fn arg(self, arg: impl Into<String>) -> Self
pub fn mode(self, mode: OverrideMode) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn build(self) -> CommandOverride
Auto Trait Implementations§
impl Freeze for OverrideBuilder
impl RefUnwindSafe for OverrideBuilder
impl Send for OverrideBuilder
impl Sync for OverrideBuilder
impl Unpin for OverrideBuilder
impl UnwindSafe for OverrideBuilder
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