#[non_exhaustive]pub struct GroupedView {
pub key: GroupKey,
pub eligible_count: usize,
pub truncated: bool,
pub files: Vec<FileSummary>,
}Expand description
File-level shaping over a --group-by view.
eligible_count and truncated mirror the function-level analogs
but at the file level so consumers can render headers like
“Showing 10 of 45 files” without recomputing.
#[non_exhaustive] reserves namespace for future per-group
aggregates (e.g., risk-bucket totals, complexity histograms) without
breaking downstream pattern matches.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: GroupKeyThe key this view was grouped by (today: always GroupKey::File).
eligible_count: usizeDistinct files surviving the function-level filter pass —
before limit truncates the file list.
truncated: boolTrue iff limit reduced the file list.
files: Vec<FileSummary>Per-file aggregates, sorted and truncated per spec.sort and
spec.limit at the file level.
Trait Implementations§
Source§impl Clone for GroupedView
impl Clone for GroupedView
Source§fn clone(&self) -> GroupedView
fn clone(&self) -> GroupedView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GroupedView
impl Debug for GroupedView
Auto Trait Implementations§
impl Freeze for GroupedView
impl RefUnwindSafe for GroupedView
impl Send for GroupedView
impl Sync for GroupedView
impl Unpin for GroupedView
impl UnsafeUnpin for GroupedView
impl UnwindSafe for GroupedView
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