源码解剖学习

整体思路


  
  
  
    
  
  Trait:Method AbstractionStruct/Enum:Entity AbstractionCrate.io InfoorrustdocDomain Knowledge业务/领域知识Generic TypeTargetAbstract Tools业务知识领域知识相关语法点官方文档他山之石Cargo.tomlThinking OutputComponentSeq Diagram

通用图表工具

俯瞰:径向图(radial tree)

解剖:结构图

逻辑:时序图/流程图

实现:代码设计

文件级别

crate级别

crates级别

源自<Rust编程第一课>


  
  
  
    
  
  Source Code TraitsThreeStepsDefinitionExamplerequired Methodsforeign typesdoc.rs/README.mdProvided MethodsDefinitionExamplerequired Methodsforeign typesProvided MethodsOR如果是本地项目STEP1. 从大纲/Traits开始Source Code UsageAuto TraitImplementationsImplementedTraitdoc.rs/README.mdBlanket ImplementationsOR如果是本地项目STEP2. Data Structure(Main Struct/Enum)IntroUsageAuto TraitImplementationsImplementedTraitBlanket ImplementationsIntroExample/TestsThemeReadingStep3