pub struct FileDetector;
Expand description
Stateless file detector
Implementations§
Source§impl FileDetector
impl FileDetector
Sourcepub fn detect_context(
file_path: &Path,
cursor: Option<Position>,
) -> RazResult<FileExecutionContext>
pub fn detect_context( file_path: &Path, cursor: Option<Position>, ) -> RazResult<FileExecutionContext>
Detect execution context for any file path
Sourcepub fn detect_context_with_options(
file_path: &Path,
cursor: Option<Position>,
force_standalone: bool,
) -> RazResult<FileExecutionContext>
pub fn detect_context_with_options( file_path: &Path, cursor: Option<Position>, force_standalone: bool, ) -> RazResult<FileExecutionContext>
Detect execution context with force standalone option
Auto Trait Implementations§
impl Freeze for FileDetector
impl RefUnwindSafe for FileDetector
impl Send for FileDetector
impl Sync for FileDetector
impl Unpin for FileDetector
impl UnwindSafe for FileDetector
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