pub struct FileInfo {
pub file_path: PathBuf,
pub file_id: NodeId,
pub functions: Vec<NodeId>,
pub classes: Vec<NodeId>,
pub traits: Vec<NodeId>,
pub imports: Vec<NodeId>,
pub parse_time: Duration,
pub line_count: usize,
pub byte_count: usize,
}Expand description
Information about a successfully parsed file
Fields§
§file_path: PathBufPath to the source file
file_id: NodeIdNode ID of the file/module in the graph
functions: Vec<NodeId>Node IDs of all functions extracted
classes: Vec<NodeId>Node IDs of all classes extracted
traits: Vec<NodeId>Node IDs of all traits/interfaces extracted
imports: Vec<NodeId>Node IDs of all imports extracted
parse_time: DurationTime taken to parse this file
line_count: usizeNumber of lines in the file
byte_count: usizeFile size in bytes
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FileInfo
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