pub struct TierFile {
pub path: PathBuf,
pub body: String,
pub estimated_tokens: usize,
pub truncated_bytes: usize,
}Expand description
One loaded tier file with provenance.
Fields§
§path: PathBufAbsolute path of the file on disk.
body: StringFile contents (UTF-8 lossy; may have a truncation suffix when over-budget).
estimated_tokens: usizeEstimated tokens (body.len() / 4).
truncated_bytes: usizeBytes shed by budget truncation; 0 when the file fit.
Trait Implementations§
impl Eq for TierFile
impl StructuralPartialEq for TierFile
Auto Trait Implementations§
impl Freeze for TierFile
impl RefUnwindSafe for TierFile
impl Send for TierFile
impl Sync for TierFile
impl Unpin for TierFile
impl UnsafeUnpin for TierFile
impl UnwindSafe for TierFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.