pub struct FileRead {
pub path: PathBuf,
pub reads: usize,
pub searches: usize,
pub edits: usize,
pub tokens: usize,
pub turns: Vec<usize>,
pub last_read: Option<u64>,
pub last_edit: Option<u64>,
}Expand description
A file the session read, searched in or changed.
Fields§
§path: PathBuf§reads: usize§searches: usize§edits: usize§tokens: usizeAbout how many tokens what it read of this file came to.
turns: Vec<usize>The turns it read the file in, 1-based, each once.
last_read: Option<u64>When it last read the file, in seconds since 1970, to tell whether it changed since.
last_edit: Option<u64>When it last changed the file itself.
Trait Implementations§
impl StructuralPartialEq for FileRead
Auto Trait Implementations§
impl Forget for FileRead
impl Freeze for FileRead
impl Move for FileRead
impl RefUnwindSafe for FileRead
impl Send for FileRead
impl Sync for FileRead
impl Unpin for FileRead
impl UnsafeUnpin for FileRead
impl UnwindSafe for FileRead
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