pub struct ProjectAnalysis {
pub root_crate: String,
pub crates: HashMap<String, CrateUsage>,
pub total_calls: usize,
}Expand description
Complete analysis results for a Rust project.
Fields§
§root_crate: StringName of the root crate
crates: HashMap<String, CrateUsage>Map of crate name -> crate usage
total_calls: usizeTotal number of dependency calls across the project
Implementations§
Source§impl ProjectAnalysis
impl ProjectAnalysis
pub fn new(root_crate: String) -> Self
Sourcepub fn get_or_create_crate(
&mut self,
name: String,
is_direct: bool,
) -> &mut CrateUsage
pub fn get_or_create_crate( &mut self, name: String, is_direct: bool, ) -> &mut CrateUsage
Get or create a crate usage entry.
Sourcepub fn recalculate_totals(&mut self)
pub fn recalculate_totals(&mut self)
Calculate total calls across all crates.
Trait Implementations§
Source§impl Clone for ProjectAnalysis
impl Clone for ProjectAnalysis
Source§impl Debug for ProjectAnalysis
impl Debug for ProjectAnalysis
Source§impl<'de> Deserialize<'de> for ProjectAnalysis
impl<'de> Deserialize<'de> for ProjectAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectAnalysis
impl PartialEq for ProjectAnalysis
Source§impl Serialize for ProjectAnalysis
impl Serialize for ProjectAnalysis
impl StructuralPartialEq for ProjectAnalysis
Auto Trait Implementations§
impl Freeze for ProjectAnalysis
impl RefUnwindSafe for ProjectAnalysis
impl Send for ProjectAnalysis
impl Sync for ProjectAnalysis
impl Unpin for ProjectAnalysis
impl UnsafeUnpin for ProjectAnalysis
impl UnwindSafe for ProjectAnalysis
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.