Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SandmeyerX/rustlings-zh-cn
/ types & classes
Types & classes
100 in github.com/SandmeyerX/rustlings-zh-cn
⨍
Functions
673
◇
Types & classes
100
↓ 1 callers
Class
ColorTupleStruct
solutions/07_structs/structs1.rs:7
↓ 1 callers
Class
PositiveNonzeroInteger
solutions/13_error_handling/errors5.rs:35
↓ 1 callers
Class
PositiveNonzeroInteger
exercises/13_error_handling/errors5.rs:35
Interface
AppendBar
特征 `AppendBar` 只有一个函数,该函数会将 "Bar" 追加到实现此特征的任何对象上。
solutions/15_traits/traits1.rs:2
Interface
AppendBar
solutions/15_traits/traits2.rs:1
Interface
AppendBar
特征 `AppendBar` 只有一个函数,该函数会将 "Bar" 追加到实现此特征的任何对象上。
exercises/15_traits/traits1.rs:2
Interface
AppendBar
exercises/15_traits/traits2.rs:1
Class
Book
solutions/16_lifetimes/lifetimes3.rs:3
Class
Book
TODO: 修复关于此结构体的编译器错误。
exercises/16_lifetimes/lifetimes3.rs:4
Class
Color
solutions/23_conversions/try_from_into.rs:10
Class
Color
exercises/23_conversions/try_from_into.rs:10
Class
ColorRegularStruct
solutions/07_structs/structs1.rs:1
Class
ColorRegularStruct
exercises/07_structs/structs1.rs:1
Class
ColorTupleStruct
exercises/07_structs/structs1.rs:6
Enum
Command
solutions/quizzes/quiz2.rs:13
Enum
Command
exercises/quizzes/quiz2.rs:21
Enum
CreationError
solutions/13_error_handling/errors4.rs:4
Enum
CreationError
solutions/13_error_handling/errors5.rs:16
Enum
CreationError
solutions/13_error_handling/errors6.rs:8
Enum
CreationError
exercises/13_error_handling/errors4.rs:2
Enum
CreationError
exercises/13_error_handling/errors5.rs:16
Enum
CreationError
exercises/13_error_handling/errors6.rs:8
Enum
DivisionError
solutions/18_iterators/iterators3.rs:2
Enum
DivisionError
exercises/18_iterators/iterators3.rs:2
Enum
Fruit
solutions/11_hashmaps/hashmaps2.rs:12
Enum
Fruit
exercises/11_hashmaps/hashmaps2.rs:12
Enum
IntoColorError
solutions/23_conversions/try_from_into.rs:18
Enum
IntoColorError
exercises/23_conversions/try_from_into.rs:18
Class
JobStatus
solutions/20_threads/threads2.rs:10
Class
JobStatus
exercises/20_threads/threads2.rs:6
Interface
Licensed
solutions/15_traits/traits3.rs:1
Interface
Licensed
solutions/15_traits/traits4.rs:1
Interface
Licensed
exercises/15_traits/traits3.rs:1
Interface
Licensed
exercises/15_traits/traits4.rs:1
Enum
List
solutions/19_smart_pointers/box1.rs:11
Enum
List
exercises/19_smart_pointers/box1.rs:12
Enum
Message
solutions/08_enums/enums2.rs:10
Enum
Message
solutions/08_enums/enums3.rs:8
Enum
Message
solutions/08_enums/enums1.rs:2
Enum
Message
exercises/08_enums/enums2.rs:8
Enum
Message
exercises/08_enums/enums3.rs:6
Enum
Message
exercises/08_enums/enums1.rs:2
Class
Order
solutions/07_structs/structs2.rs:2
Class
Order
exercises/07_structs/structs2.rs:2
Class
OtherSoftware
solutions/15_traits/traits3.rs:11
Class
OtherSoftware
solutions/15_traits/traits4.rs:8
Class
OtherSoftware
exercises/15_traits/traits3.rs:12
Class
OtherSoftware
exercises/15_traits/traits4.rs:8
Class
OtherStruct
solutions/15_traits/traits5.rs:17
Class
OtherStruct
exercises/15_traits/traits5.rs:17
Interface
OtherTrait
solutions/15_traits/traits5.rs:7
Interface
OtherTrait
exercises/15_traits/traits5.rs:7
Class
Package
solutions/07_structs/structs3.rs:2
Class
Package
exercises/07_structs/structs3.rs:5
Enum
ParsePersonError
solutions/23_conversions/from_str.rs:18
Enum
ParsePersonError
exercises/23_conversions/from_str.rs:18
Enum
ParsePosNonzeroError
solutions/13_error_handling/errors6.rs:15
Enum
ParsePosNonzeroError
exercises/13_error_handling/errors6.rs:15
Class
Person
solutions/23_conversions/from_str.rs:11
Class
Person
solutions/23_conversions/from_into.rs:6
Class
Person
exercises/23_conversions/from_str.rs:11
Class
Person
exercises/23_conversions/from_into.rs:6
Enum
Planet
solutions/19_smart_pointers/rc1.rs:11
Enum
Planet
exercises/19_smart_pointers/rc1.rs:11
Class
Point
solutions/12_options/options3.rs:2
Class
Point
solutions/08_enums/enums2.rs:4
Class
Point
solutions/08_enums/enums3.rs:3
Class
Point
exercises/12_options/options3.rs:2
Class
Point
exercises/08_enums/enums2.rs:2
Class
Point
exercises/08_enums/enums3.rs:1
Class
PositiveNonzeroInteger
solutions/13_error_handling/errors4.rs:10
Class
PositiveNonzeroInteger
solutions/13_error_handling/errors6.rs:45
Class
PositiveNonzeroInteger
exercises/13_error_handling/errors4.rs:8
Class
PositiveNonzeroInteger
exercises/13_error_handling/errors6.rs:30
Enum
Progress
solutions/18_iterators/iterators5.rs:9
Enum
Progress
exercises/18_iterators/iterators5.rs:9
Class
Queue
solutions/20_threads/threads3.rs:3
Class
Queue
exercises/20_threads/threads3.rs:3
Class
Rectangle
solutions/17_tests/tests3.rs:1
Class
Rectangle
exercises/17_tests/tests3.rs:1
Class
ReportCard
在结构体的定义中使用泛型参数`T`
solutions/quizzes/quiz3.rs:12
Class
ReportCard
TODO: 按照上述描述调整结构体。
exercises/quizzes/quiz3.rs:14
Class
SomeSoftware
solutions/15_traits/traits3.rs:7
Class
SomeSoftware
solutions/15_traits/traits4.rs:7
Class
SomeSoftware
exercises/15_traits/traits3.rs:8
Class
SomeSoftware
exercises/15_traits/traits4.rs:7
Class
SomeStruct
solutions/15_traits/traits5.rs:13
Class
SomeStruct
exercises/15_traits/traits5.rs:13
Interface
SomeTrait
solutions/15_traits/traits5.rs:1
Interface
SomeTrait
exercises/15_traits/traits5.rs:1
Class
State
solutions/08_enums/enums3.rs:16
Class
State
exercises/08_enums/enums3.rs:14
Class
Sun
solutions/19_smart_pointers/rc1.rs:8
Class
Sun
exercises/19_smart_pointers/rc1.rs:8
Class
TeamScores
solutions/11_hashmaps/hashmaps3.rs:11
Class
TeamScores
exercises/11_hashmaps/hashmaps3.rs:11
Class
UnitStruct
solutions/07_structs/structs1.rs:10
Class
UnitStruct
exercises/07_structs/structs1.rs:9
Class
Wrapper
solutions/14_generics/generics2.rs:1
Class
Wrapper
这个强大的包装器(wrapper),它具备存储正整数值的能力。 TODO: 使用泛型重写它,使得它能支持包装任何类型。
exercises/14_generics/generics2.rs:3