pub struct MatlabModuleResolver;Expand description
Module resolver for MATLAB.
In MATLAB, one function or class lives in each .m file, and the filename
is the function/class name. Functions are found on the path — there is no
explicit import syntax (the import command is for Java class imports, not
MATLAB function lookup). ImportSpec.raw will be a function/class name.
Trait Implementations§
Source§impl ModuleResolver for MatlabModuleResolver
impl ModuleResolver for MatlabModuleResolver
Source§fn workspace_config(&self, root: &Path) -> ResolverConfig
fn workspace_config(&self, root: &Path) -> ResolverConfig
Read workspace config from the given root (e.g. Cargo.toml, tsconfig.json).
Source§fn module_of_file(
&self,
_root: &Path,
file: &Path,
_cfg: &ResolverConfig,
) -> Vec<ModuleId>
fn module_of_file( &self, _root: &Path, file: &Path, _cfg: &ResolverConfig, ) -> Vec<ModuleId>
Return the canonical module identity/ies of a file within the workspace.
Source§fn resolve(
&self,
from_file: &Path,
spec: &ImportSpec,
cfg: &ResolverConfig,
) -> Resolution
fn resolve( &self, from_file: &Path, spec: &ImportSpec, cfg: &ResolverConfig, ) -> Resolution
Resolve an import specifier from
from_file to a target file + name.Auto Trait Implementations§
impl Freeze for MatlabModuleResolver
impl RefUnwindSafe for MatlabModuleResolver
impl Send for MatlabModuleResolver
impl Sync for MatlabModuleResolver
impl Unpin for MatlabModuleResolver
impl UnsafeUnpin for MatlabModuleResolver
impl UnwindSafe for MatlabModuleResolver
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request