pub struct FileCompressionRecord {
pub path: PathBuf,
pub level: CompressionLevel,
pub content_hash: [u8; 12],
pub line_range: Option<(usize, usize)>,
pub last_referenced_turn: usize,
}Expand description
Per-file tracking record used by the history compressor.
Fields§
§path: PathBuf§level: CompressionLevel§content_hash: [u8; 12]12-byte SHA256 slice — short enough to be cheap, long enough to detect any real content change.
line_range: Option<(usize, usize)>Line range retained at Partial level, if any.
last_referenced_turn: usizeTurn index where this file was last referenced by any tool.
Implementations§
Source§impl FileCompressionRecord
impl FileCompressionRecord
Sourcepub fn is_protected(&self, current_turn: usize) -> bool
pub fn is_protected(&self, current_turn: usize) -> bool
True while the file is within the protected turn window.
Trait Implementations§
Source§impl Clone for FileCompressionRecord
impl Clone for FileCompressionRecord
Source§fn clone(&self) -> FileCompressionRecord
fn clone(&self) -> FileCompressionRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileCompressionRecord
impl Debug for FileCompressionRecord
Source§impl<'de> Deserialize<'de> for FileCompressionRecord
impl<'de> Deserialize<'de> for FileCompressionRecord
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
Auto Trait Implementations§
impl Freeze for FileCompressionRecord
impl RefUnwindSafe for FileCompressionRecord
impl Send for FileCompressionRecord
impl Sync for FileCompressionRecord
impl Unpin for FileCompressionRecord
impl UnsafeUnpin for FileCompressionRecord
impl UnwindSafe for FileCompressionRecord
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