pub struct DiscoveredFile {
pub path: PathBuf,
pub language: Language,
pub size_bytes: u64,
}Expand description
A discovered source file ready for parsing.
Fields§
§path: PathBufPath relative to the scan root (the project_root passed to
discover_files). Stored relative so the IR is identifies the
same logical file regardless of which worktree directory the scan
was invoked from — see Bug #3 in the merge-aware-decisions branch
notes. Callers that need to read the file from disk must
root.join(&df.path).
language: LanguageDetected programming language based on file extension.
size_bytes: u64File size in bytes.
Trait Implementations§
Source§impl Clone for DiscoveredFile
impl Clone for DiscoveredFile
Source§fn clone(&self) -> DiscoveredFile
fn clone(&self) -> DiscoveredFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredFile
impl RefUnwindSafe for DiscoveredFile
impl Send for DiscoveredFile
impl Sync for DiscoveredFile
impl Unpin for DiscoveredFile
impl UnsafeUnpin for DiscoveredFile
impl UnwindSafe for DiscoveredFile
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