pub struct UniversalCommandGenerator;Expand description
Universal command generator
Implementations§
Source§impl UniversalCommandGenerator
impl UniversalCommandGenerator
Sourcepub fn generate_commands(
context: &FileExecutionContext,
cursor: Option<Position>,
) -> RazResult<Vec<Command>>
pub fn generate_commands( context: &FileExecutionContext, cursor: Option<Position>, ) -> RazResult<Vec<Command>>
Generate all appropriate commands for the given execution context
Sourcepub fn generate_commands_with_overrides(
context: &FileExecutionContext,
cursor: Option<Position>,
workspace: Option<&Path>,
_override_key: Option<&str>,
) -> RazResult<Vec<Command>>
pub fn generate_commands_with_overrides( context: &FileExecutionContext, cursor: Option<Position>, workspace: Option<&Path>, _override_key: Option<&str>, ) -> RazResult<Vec<Command>>
Generate commands with optional override support
Sourcepub fn generate_commands_with_runtime_override(
context: &FileExecutionContext,
cursor: Option<Position>,
_workspace: Option<&Path>,
_override_key: Option<&str>,
override_input: &str,
) -> RazResult<Vec<Command>>
pub fn generate_commands_with_runtime_override( context: &FileExecutionContext, cursor: Option<Position>, _workspace: Option<&Path>, _override_key: Option<&str>, override_input: &str, ) -> RazResult<Vec<Command>>
Generate commands with runtime override input
pub fn find_test_at_cursor( entry_points: &[EntryPoint], cursor: Position, ) -> Option<&EntryPoint>
Auto Trait Implementations§
impl Freeze for UniversalCommandGenerator
impl RefUnwindSafe for UniversalCommandGenerator
impl Send for UniversalCommandGenerator
impl Sync for UniversalCommandGenerator
impl Unpin for UniversalCommandGenerator
impl UnwindSafe for UniversalCommandGenerator
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