pub struct PythonModuleResolver;Trait Implementations§
Source§impl ModuleResolver for PythonModuleResolver
impl ModuleResolver for PythonModuleResolver
Source§fn resolve_import(
&self,
module_path: &str,
from_file: &Path,
base_dir: &Path,
) -> Result<ResolvedPath, ContextCreatorError>
fn resolve_import( &self, module_path: &str, from_file: &Path, base_dir: &Path, ) -> Result<ResolvedPath, ContextCreatorError>
Resolve a module import to a file path
Source§fn get_file_extensions(&self) -> Vec<&'static str>
fn get_file_extensions(&self) -> Vec<&'static str>
Get common file extensions for this language
Source§fn is_external_module(&self, module_path: &str) -> bool
fn is_external_module(&self, module_path: &str) -> bool
Check if a module is likely external/third-party
Auto Trait Implementations§
impl Freeze for PythonModuleResolver
impl RefUnwindSafe for PythonModuleResolver
impl Send for PythonModuleResolver
impl Sync for PythonModuleResolver
impl Unpin for PythonModuleResolver
impl UnwindSafe for PythonModuleResolver
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