pub struct ContextBuilder { /* private fields */ }Expand description
Assemble a context by hand, for a plugin’s own tests.
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn project_root(self, root: impl Into<PathBuf>) -> Self
pub fn project_root(self, root: impl Into<PathBuf>) -> Self
Set the project root.
Sourcepub fn config_files<I, P>(self, paths: I) -> Self
pub fn config_files<I, P>(self, paths: I) -> Self
Set the project config files that would have been read.
Sourcepub fn reason(self, reason: SelectionReason) -> Self
pub fn reason(self, reason: SelectionReason) -> Self
Say why this plugin would have been selected.
Auto Trait Implementations§
impl !Send for ContextBuilder
impl !Sync for ContextBuilder
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Unpin for ContextBuilder
impl UnsafeUnpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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