MCPcopy Index your code
hub / github.com/anonymousGiga/learn_rust

github.com/anonymousGiga/learn_rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
275 symbols 350 edges 111 files 47 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

GetName (Interface)
使用trait bound有条件的实现方法 [2 implementers]
learn_trait4/src/main.rs
GetInformation (Interface)
1、trait用于定义与其它类型共享的功能,类似于其它语言中的接口。 (1)可以通过trait以抽象的方式定义共享的行为。 (2)可以使用trait bounds指定泛型是任何拥有特定行为的类型。 2、定义trait [2 implementers]
learn_trait1/src/main.rs
GetName (Interface)
对任何实现了特定trait的类型有条件的实现trait [1 implementers]
learn_trait5/src/main.rs
Foo (Interface)
7、实现不安全的trait (1)当至少有一个方法中包含编译器不能验证的不变量时,该trait就是不安全的。 (2)在trait之前增加unsafe声明其为不安全的,同事trait的实现也必须用unsafe标记。 [1 implementers]
learn_unsafe6/src/main.rs
GetAge (Interface)
(no doc) [2 implementers]
learn_trait2/src/main.rs
Iterator1 (Interface)
(no doc) [2 implementers]
learn_htrait1/src/main.rs
Draw (Interface)
(no doc) [2 implementers]
learn_oo2/gui/src/lib.rs
Animal (Interface)
(no doc) [1 implementers]
learn_htrait3/src/main.rs

Core symbols most depended-on inside this repo

next
called by 6
learn_iter2/src/main.rs
prin
called by 4
learn_enum/src/main.rs
prin
called by 4
learn_enum2/src/main.rs
produce_re
called by 3
learn_crate2/mylib/src/factory.rs
add
called by 3
learn_oo1/getaver/src/lib.rs
wapper_func
called by 2
learn_hfn1/src/main.rs
tail
called by 2
learn_loop_ref2/src/main.rs
plus_one
called by 2
learn_option/src/main.rs

Shape

Function 154
Method 50
Class 41
Enum 16
Interface 14

Languages

Rust100%
C1%

Modules by API surface

learn_trait1/src/main.rs10 symbols
learn_trait4/src/main.rs9 symbols
learn_trait2/src/main.rs9 symbols
learn_oo2/gui/src/lib.rs7 symbols
learn_oo1/getaver/src/lib.rs7 symbols
learn_enum/src/main.rs7 symbols
learn_trait5/src/main.rs6 symbols
learn_stu2/src/main.rs6 symbols
learn_crate3/src/main.rs6 symbols
learn_T/src/main.rs6 symbols
learn_life4/src/main.rs5 symbols
learn_htrait4/src/main.rs5 symbols

For agents

$ claude mcp add learn_rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact