pub struct GraphStats {
pub unit_count: usize,
pub edge_count: usize,
pub dimension: usize,
pub type_counts: HashMap<CodeUnitType, usize>,
pub edge_type_counts: HashMap<EdgeType, usize>,
pub language_counts: HashMap<Language, usize>,
}Expand description
Summary statistics about a code graph.
Fields§
§unit_count: usizeTotal number of code units.
edge_count: usizeTotal number of edges.
dimension: usizeFeature vector dimension.
type_counts: HashMap<CodeUnitType, usize>Count of units per type.
edge_type_counts: HashMap<EdgeType, usize>Count of edges per type.
language_counts: HashMap<Language, usize>Count of units per language.
Trait Implementations§
Source§impl Clone for GraphStats
impl Clone for GraphStats
Source§fn clone(&self) -> GraphStats
fn clone(&self) -> GraphStats
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 moreAuto Trait Implementations§
impl Freeze for GraphStats
impl RefUnwindSafe for GraphStats
impl Send for GraphStats
impl Sync for GraphStats
impl Unpin for GraphStats
impl UnsafeUnpin for GraphStats
impl UnwindSafe for GraphStats
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