Module utils

Source
Expand description

Common utility functions shared across modules

Structs§

TypeHierarchy
Enhanced type hierarchy classification for treemap visualization

Functions§

extract_array_info
Extract array information for display
extract_generic_params
Extract generic parameters from type names (enhanced version)
extract_generic_type
Extract generic type parameter for display
extract_std_module
Extract standard library module name
format_bytes
Format bytes in a human-readable format
get_category_color
Get color for category - Enhanced with new categories
get_simple_type
Get a simplified type name for display
get_type_category_hierarchy
Get comprehensive type hierarchy for treemap visualization
get_type_color
Get color based on type for consistent visualization
get_type_gradient_colors
Get type-specific gradient colors for enhanced visualization
is_primitive_type
Check if a type is a primitive type
simplify_type_name
Simplify Rust type names for better readability - Enhanced Unknown Type identification