pub struct ProjectStats {
pub source_files: usize,
pub source_lines: usize,
pub source_bytes: usize,
pub source_tokens: usize,
pub annotation_files: usize,
pub annotation_count: usize,
pub annotation_tokens: usize,
pub compression_ratio: Option<f64>,
}Expand description
Aggregate project statistics for token burn reporting.
Fields§
§source_files: usizeNumber of source files with resolver support.
source_lines: usizeTotal lines across all source files.
source_bytes: usizeTotal bytes across all source files.
source_tokens: usizeEstimated source tokens (bytes / 4).
annotation_files: usizeNumber of annotation sidecar files loaded.
annotation_count: usizeTotal annotation count across all files.
annotation_tokens: usizeEstimated annotation tokens (serialized JSON bytes / 4).
compression_ratio: Option<f64>Compression ratio: source_tokens / annotation_tokens.
None when annotation_tokens is zero.
Trait Implementations§
Source§impl Clone for ProjectStats
impl Clone for ProjectStats
Source§fn clone(&self) -> ProjectStats
fn clone(&self) -> ProjectStats
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 ProjectStats
impl Debug for ProjectStats
Auto Trait Implementations§
impl Freeze for ProjectStats
impl RefUnwindSafe for ProjectStats
impl Send for ProjectStats
impl Sync for ProjectStats
impl Unpin for ProjectStats
impl UnsafeUnpin for ProjectStats
impl UnwindSafe for ProjectStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more