pub struct SourceContext<'a> {
pub file_path: &'a Path,
pub rel_path: &'a str,
pub project_root: &'a Path,
}Expand description
Context passed to sources for evaluation.
Fields§
§file_path: &'a PathAbsolute path to the file being analyzed.
rel_path: &'a strPath relative to project root.
project_root: &'a PathProject root directory.
Auto Trait Implementations§
impl<'a> Freeze for SourceContext<'a>
impl<'a> RefUnwindSafe for SourceContext<'a>
impl<'a> Send for SourceContext<'a>
impl<'a> Sync for SourceContext<'a>
impl<'a> Unpin for SourceContext<'a>
impl<'a> UnsafeUnpin for SourceContext<'a>
impl<'a> UnwindSafe for SourceContext<'a>
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