pub struct FileInfo {
pub path: PathBuf,
pub relative_path: PathBuf,
pub size: u64,
pub file_type: FileType,
pub priority: f32,
pub imports: Vec<PathBuf>,
pub imported_by: Vec<PathBuf>,
pub function_calls: Vec<FunctionCall>,
pub type_references: Vec<TypeReference>,
pub exported_functions: Vec<FunctionDefinition>,
}Expand description
Information about a file found during walking
Fields§
§path: PathBufAbsolute path to the file
relative_path: PathBufRelative path from the root directory
size: u64File size in bytes
file_type: FileTypeFile type based on extension
priority: f32Priority score (higher is more important)
imports: Vec<PathBuf>Files that this file imports/depends on (for semantic analysis)
imported_by: Vec<PathBuf>Files that import this file (reverse dependencies)
function_calls: Vec<FunctionCall>Function calls made by this file (for –include-callers analysis)
type_references: Vec<TypeReference>Type references used by this file (for –include-types analysis)
exported_functions: Vec<FunctionDefinition>Function definitions exported by this file (for –include-callers analysis)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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