pub struct DiscoveredFile {
pub id: FileId,
pub path: PathBuf,
pub size_bytes: u64,
}Expand description
A discovered source file on disk.
§Examples
use fallow_types::discover::{DiscoveredFile, FileId};
use std::path::PathBuf;
let file = DiscoveredFile {
id: FileId(0),
path: PathBuf::from("/project/src/index.ts"),
size_bytes: 2048,
};
assert_eq!(file.id, FileId(0));
assert_eq!(file.size_bytes, 2048);Fields§
§id: FileIdUnique file index.
path: PathBufAbsolute path.
size_bytes: u64File size in bytes (for sorting largest-first).
Trait Implementations§
Source§impl Clone for DiscoveredFile
impl Clone for DiscoveredFile
Auto 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