简介
在本实验中,我们将使用 Rust 提供的示例代码来研究带有虚类型参数的 Add
特性的实现。
注意:如果实验未指定文件名,你可以使用任何你想要的文件名。例如,你可以使用
main.rs
,并通过rustc main.rs &&./main
进行编译和运行。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
rust(("Rust")) -.-> rust/DataTypesGroup(["Data Types"])
rust(("Rust")) -.-> rust/FunctionsandClosuresGroup(["Functions and Closures"])
rust(("Rust")) -.-> rust/AdvancedTopicsGroup(["Advanced Topics"])
rust(("Rust")) -.-> rust/BasicConceptsGroup(["Basic Concepts"])
rust/BasicConceptsGroup -.-> rust/variable_declarations("Variable Declarations")
rust/DataTypesGroup -.-> rust/floating_types("Floating-point Types")
rust/DataTypesGroup -.-> rust/string_type("String Type")
rust/DataTypesGroup -.-> rust/type_casting("Type Conversion and Casting")
rust/FunctionsandClosuresGroup -.-> rust/function_syntax("Function Syntax")
rust/FunctionsandClosuresGroup -.-> rust/expressions_statements("Expressions and Statements")
rust/AdvancedTopicsGroup -.-> rust/traits("Traits")
rust/AdvancedTopicsGroup -.-> rust/operator_overloading("Traits for Operator Overloading")
subgraph Lab Skills
rust/variable_declarations -.-> lab-99356{{"测试用例:单位说明"}}
rust/floating_types -.-> lab-99356{{"测试用例:单位说明"}}
rust/string_type -.-> lab-99356{{"测试用例:单位说明"}}
rust/type_casting -.-> lab-99356{{"测试用例:单位说明"}}
rust/function_syntax -.-> lab-99356{{"测试用例:单位说明"}}
rust/expressions_statements -.-> lab-99356{{"测试用例:单位说明"}}
rust/traits -.-> lab-99356{{"测试用例:单位说明"}}
rust/operator_overloading -.-> lab-99356{{"测试用例:单位说明"}}
end