Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChenZhongPu/design-pattern-rust
/ functions
Functions
257 in github.com/ChenZhongPu/design-pattern-rust
⨍
Functions
257
◇
Types & classes
149
↓ 11 callers
Method
iter
(&self)
behavioral/iterator/src/diner_menu.rs:35
↓ 9 callers
Method
add
(&mut self, component: Box<dyn MenuComponent>)
structural/composite/src/menu.rs:20
↓ 4 callers
Method
channel
(&self)
structural/bridge/src/lg.rs:25
↓ 4 callers
Method
order_pizza
(&self, t: &str)
creational/factory/abstract-factory/src/pizza_store.rs:7
↓ 4 callers
Method
set_channel
(&self, channel: i32)
structural/bridge/src/remote_control.rs:13
↓ 4 callers
Method
tv
(&self)
structural/bridge/src/generic_remote.rs:10
↓ 3 callers
Method
add_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1/src/subject.rs:18
↓ 3 callers
Method
add_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1x/src/subject.rs:13
↓ 3 callers
Method
add_observer
(&mut self, observer: &Rc<dyn Observer>)
behavioral/observer/observer-3/src/subject.rs:15
↓ 3 callers
Method
add_observer
(&mut self, observer: Rc<RefCell<dyn Observer>>)
behavioral/observer/observer-2/src/subject.rs:21
↓ 3 callers
Method
create_cheese
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:27
↓ 3 callers
Method
create_dough
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:19
↓ 3 callers
Method
create_sauce
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:23
↓ 3 callers
Method
insert_quarter
(&mut self)
behavioral/state/src/gumball_machine.rs:25
↓ 3 callers
Method
off_button_pushed
(&mut self, slot: usize)
behavioral/command/undo/src/remote_control.rs:30
↓ 3 callers
Method
off_button_pushed
(&self, slot: usize)
behavioral/command/command2/src/remote_control.rs:25
↓ 3 callers
Method
on_button_pushed
(&mut self, slot: usize)
behavioral/command/undo/src/remote_control.rs:25
↓ 3 callers
Method
on_button_pushed
(&self, slot: usize)
behavioral/command/command2/src/remote_control.rs:21
↓ 3 callers
Method
set_command
(&mut self, slot: usize, on_command: Rc<RefCell<dyn Command>>, off_command: Rc<RefCell<dyn Command>>)
behavioral/command/undo/src/remote_control.rs:20
↓ 3 callers
Method
set_command
(&mut self, slot: usize, on_command: Box<dyn Command>, off_command: Box<dyn Command>)
behavioral/command/command2/src/remote_control.rs:16
↓ 3 callers
Method
set_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-2/src/subject.rs:37
↓ 3 callers
Method
turn_crank
(&mut self)
behavioral/state/src/gumball_machine.rs:37
↓ 2 callers
Method
add_item
(&mut self, name: &str, description: &str, vegetarian: bool, price: f64)
behavioral/iterator/src/diner_menu.rs:24
↓ 2 callers
Method
button_pressed
(&self)
behavioral/command/command1/src/remote_control.rs:17
↓ 2 callers
Method
dim
(&mut self, level: i32)
behavioral/command/undo/src/light.rs:23
↓ 2 callers
Method
execute
(&mut self)
behavioral/command/undo/src/command.rs:12
↓ 2 callers
Method
execute
(&self)
behavioral/command/command2/src/command.rs:11
↓ 2 callers
Method
get_id
(&self)
behavioral/observer/observer-1/src/observer.rs:21
↓ 2 callers
Method
get_id
(&self)
behavioral/observer/observer-2/src/observer.rs:21
↓ 2 callers
Method
get_level
(&self)
behavioral/command/undo/src/light.rs:32
↓ 2 callers
Method
off
(&mut self)
behavioral/command/undo/src/light.rs:18
↓ 2 callers
Method
off
(&self)
behavioral/command/command2/src/light.rs:15
↓ 2 callers
Method
off
(&self)
structural/bridge/src/lg.rs:16
↓ 2 callers
Method
off
(&self)
structural/facade/src/tuner.rs:20
↓ 2 callers
Method
on
(&self)
behavioral/command/command2/src/light.rs:11
↓ 2 callers
Method
on
(&self)
structural/bridge/src/lg.rs:12
↓ 2 callers
Method
on
(&self)
structural/facade/src/tuner.rs:16
↓ 2 callers
Method
order_pizza
(&self, t: &str)
creational/factory/simple-factory/src/pizza_store.rs:7
↓ 2 callers
Method
order_pizza
(&self, t: &str)
creational/factory/factory-method/src/pizza_store.rs:5
↓ 2 callers
Method
perform_fly
(&self)
behavioral/strategy/strategy-1/src/duck.rs:24
↓ 2 callers
Method
perform_fly
(&self, fly: &T)
behavioral/strategy/strategy-2/src/duck.rs:6
↓ 2 callers
Method
perform_quack
(&self)
behavioral/strategy/strategy-1/src/duck.rs:28
↓ 2 callers
Method
prepare_recipe
(&self)
behavioral/template/src/caffeine_beverage.rs:2
↓ 2 callers
Method
set_command
(&mut self, slot: Box<dyn Command>)
behavioral/command/command1/src/remote_control.rs:13
↓ 2 callers
Method
set_fly_behavior
(&mut self, fly_behavior: Box<dyn FlyBehavior>)
behavioral/strategy/strategy-1/src/duck.rs:16
↓ 2 callers
Method
set_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-1/src/subject.rs:34
↓ 2 callers
Method
set_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-1x/src/subject.rs:29
↓ 2 callers
Method
set_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-3/src/subject.rs:36
↓ 2 callers
Function
test_duck
(duck: &T)
structural/adapter/src/main.rs:3
↓ 2 callers
Method
undo_button_pushed
(&mut self)
behavioral/command/undo/src/remote_control.rs:35
↓ 1 callers
Method
add_condiment
(&self)
behavioral/template/src/tea.rs:10
↓ 1 callers
Method
bake
(&self)
creational/factory/abstract-factory/src/pizza.rs:7
↓ 1 callers
Method
bake
(&self)
creational/factory/simple-factory/src/pizza.rs:8
↓ 1 callers
Method
bake
(&self)
creational/factory/factory-method/src/pizza.rs:8
↓ 1 callers
Method
boil_water
(&self)
behavioral/template/src/caffeine_beverage.rs:10
↓ 1 callers
Method
boxes
(&self)
creational/factory/abstract-factory/src/pizza.rs:13
↓ 1 callers
Method
boxes
(&self)
creational/factory/simple-factory/src/pizza.rs:16
↓ 1 callers
Method
boxes
(&self)
creational/factory/factory-method/src/pizza.rs:16
↓ 1 callers
Method
brew
(&self)
behavioral/template/src/tea.rs:6
↓ 1 callers
Method
bubbles_on
(&self)
behavioral/command/command2/src/hottub.rs:20
↓ 1 callers
Method
cool
(&mut self)
behavioral/command/command2/src/hottub.rs:41
↓ 1 callers
Method
count
(&self)
behavioral/state/src/gumball_machine.rs:52
↓ 1 callers
Method
create_clam
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:44
↓ 1 callers
Method
create_pizza
(&self, t: &str)
creational/factory/abstract-factory/src/pizza_store.rs:20
↓ 1 callers
Method
create_pizza
(&self, t: &str)
creational/factory/factory-method/src/ny_pizza.rs:6
↓ 1 callers
Method
create_veggies
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:31
↓ 1 callers
Method
cut
(&self)
creational/factory/abstract-factory/src/pizza.rs:10
↓ 1 callers
Method
cut
(&self)
creational/factory/simple-factory/src/pizza.rs:12
↓ 1 callers
Method
cut
(&self)
creational/factory/factory-method/src/pizza.rs:12
↓ 1 callers
Method
dispense
(self: Box<Self>, machine: &'a mut GumballMachine)
behavioral/state/src/sold_state.rs:24
↓ 1 callers
Method
display
(&self)
behavioral/strategy/strategy-2/src/duck.rs:19
↓ 1 callers
Method
down
(&self)
structural/bridge/src/special_remote.rs:23
↓ 1 callers
Method
drive
(&self)
structural/proxy/src/lib.rs:8
↓ 1 callers
Method
execute
(&self)
behavioral/command/command1/src/command.rs:10
↓ 1 callers
Method
fly
(&self)
behavioral/strategy/strategy-1/src/fly_behavior.rs:7
↓ 1 callers
Method
fly
(&self)
behavioral/strategy/strategy-2/src/fly_behavior.rs:7
↓ 1 callers
Method
fly
(&self)
structural/adapter/src/duck.rs:12
↓ 1 callers
Method
gobble
(&self)
structural/adapter/src/turkey.rs:8
↓ 1 callers
Method
heat
(&mut self)
behavioral/command/command2/src/hottub.rs:36
↓ 1 callers
Method
listen_radio
(&mut self, frequency: f64)
structural/facade/src/home_theater.rs:15
↓ 1 callers
Method
next_channel
(&self)
structural/bridge/src/generic_remote.rs:20
↓ 1 callers
Method
notify_observers
(&self)
behavioral/observer/observer-1/src/subject.rs:29
↓ 1 callers
Method
notify_observers
(&self)
behavioral/observer/observer-1x/src/subject.rs:23
↓ 1 callers
Method
notify_observers
(&self)
behavioral/observer/observer-3/src/subject.rs:28
↓ 1 callers
Method
notify_observers
(&self)
behavioral/observer/observer-2/src/subject.rs:32
↓ 1 callers
Method
off
(&self)
behavioral/command/command1/src/light.rs:8
↓ 1 callers
Method
on
(&mut self)
behavioral/command/undo/src/light.rs:13
↓ 1 callers
Method
on
(&self)
behavioral/command/command1/src/light.rs:4
↓ 1 callers
Method
pour_in_cup
(&self)
behavioral/template/src/caffeine_beverage.rs:13
↓ 1 callers
Method
prepare
(&mut self)
creational/factory/abstract-factory/src/pizza.rs:40
↓ 1 callers
Method
prepare
(&self)
creational/factory/simple-factory/src/pizza.rs:4
↓ 1 callers
Method
prepare
(&self)
creational/factory/factory-method/src/pizza.rs:4
↓ 1 callers
Method
prev_channel
(&self)
structural/bridge/src/generic_remote.rs:24
↓ 1 callers
Method
print
(&self)
structural/composite/src/menu.rs:36
↓ 1 callers
Method
print_menu
(&self)
behavioral/iterator/src/waitress.rs:12
↓ 1 callers
Method
print_menu
(&self)
structural/composite/src/waitress.rs:12
↓ 1 callers
Method
quack
(&self)
behavioral/strategy/strategy-1/src/quack_behavior.rs:7
↓ 1 callers
Method
quack
(&self)
behavioral/strategy/strategy-2/src/quack_behavior.rs:7
↓ 1 callers
Method
quack
(&self)
structural/adapter/src/duck.rs:8
↓ 1 callers
Method
release_ball
(&mut self)
behavioral/state/src/gumball_machine.rs:46
next →
1–100 of 257, ranked by callers