MCPcopy Index your code
hub / github.com/RustStudy/design_patterns

github.com/RustStudy/design_patterns @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
279 symbols 411 edges 51 files 12 documented · 4%
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

Command (Interface)
Each action is encapsulated into a struct with the trait Command where only the method `execute()` is run. [3 implementers]
strategy/src/simple.rs
Command (Interface)
(no doc) [3 implementers]
command/src/simple.rs
State (Interface)
(no doc) [3 implementers]
state/src/simple.rs
Observable (Interface)
the observable type [1 implementers]
observer/src/simple2.rs
AbstractFactory (Interface)
(no doc) [2 implementers]
factory/src/simple.rs
Component (Interface)
(no doc) [2 implementers]
decorator/src/simple.rs
Implementor (Interface)
(no doc) [2 implementers]
bridge/src/simple.rs
Composite (Interface)
(no doc) [2 implementers]
composite/src/simple.rs

Core symbols most depended-on inside this repo

execute
called by 8
command/src/simple.rs
set_strategy
called by 3
strategy/src/simple2.rs
button_was_pressed
called by 3
strategy/src/simple.rs
append_command
called by 3
command/src/simple.rs
process_request
called by 3
chain_of_responsibility/src/simple.rs
set_state
called by 3
state/src/simple.rs
press_button
called by 3
state/src/simple.rs
get
called by 3
mediator/src/simple.rs

Shape

Method 124
Class 63
Function 58
Interface 31
Enum 3

Languages

Rust100%

Modules by API surface

observer/src/lib.rs20 symbols
command/src/simple.rs17 symbols
factory/src/simple.rs14 symbols
strategy/src/simple.rs13 symbols
observer/src/simple1.rs13 symbols
memento/src/simple.rs13 symbols
builder/src/simple.rs13 symbols
state/src/simple.rs12 symbols
observer/src/simple3.rs11 symbols
observer/src/simple2.rs11 symbols
chain_of_responsibility/src/simple.rs10 symbols
bridge/src/simple.rs10 symbols

For agents

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

⬇ download graph artifact