pub struct ProjectContext {
pub root: PathBuf,
pub rust_files: Vec<PathBuf>,
pub markdown_files: Vec<PathBuf>,
pub yaml_files: Vec<PathBuf>,
pub makefile_files: Vec<PathBuf>,
pub code_facts: Vec<CodeFact>,
}Expand description
Everything an analyzer needs to answer questions about the project.
Owns parsed artifacts so each file is parsed at most once per run.
Fields§
§root: PathBuf§rust_files: Vec<PathBuf>§markdown_files: Vec<PathBuf>§yaml_files: Vec<PathBuf>§makefile_files: Vec<PathBuf>§code_facts: Vec<CodeFact>Implementations§
Trait Implementations§
Source§impl Debug for ProjectContext
impl Debug for ProjectContext
Source§impl Default for ProjectContext
impl Default for ProjectContext
Source§fn default() -> ProjectContext
fn default() -> ProjectContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectContext
impl RefUnwindSafe for ProjectContext
impl Send for ProjectContext
impl Sync for ProjectContext
impl Unpin for ProjectContext
impl UnsafeUnpin for ProjectContext
impl UnwindSafe for ProjectContext
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