MCPcopy Create free account

hub / github.com/ChenZhongPu/design-pattern-rust / functions

Functions257 in github.com/ChenZhongPu/design-pattern-rust

↓ 11 callersMethoditer
(&self)
behavioral/iterator/src/diner_menu.rs:35
↓ 9 callersMethodadd
(&mut self, component: Box<dyn MenuComponent>)
structural/composite/src/menu.rs:20
↓ 4 callersMethodchannel
(&self)
structural/bridge/src/lg.rs:25
↓ 4 callersMethodorder_pizza
(&self, t: &str)
creational/factory/abstract-factory/src/pizza_store.rs:7
↓ 4 callersMethodset_channel
(&self, channel: i32)
structural/bridge/src/remote_control.rs:13
↓ 4 callersMethodtv
(&self)
structural/bridge/src/generic_remote.rs:10
↓ 3 callersMethodadd_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1/src/subject.rs:18
↓ 3 callersMethodadd_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1x/src/subject.rs:13
↓ 3 callersMethodadd_observer
(&mut self, observer: &Rc<dyn Observer>)
behavioral/observer/observer-3/src/subject.rs:15
↓ 3 callersMethodadd_observer
(&mut self, observer: Rc<RefCell<dyn Observer>>)
behavioral/observer/observer-2/src/subject.rs:21
↓ 3 callersMethodcreate_cheese
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:27
↓ 3 callersMethodcreate_dough
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:19
↓ 3 callersMethodcreate_sauce
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:23
↓ 3 callersMethodinsert_quarter
(&mut self)
behavioral/state/src/gumball_machine.rs:25
↓ 3 callersMethodoff_button_pushed
(&mut self, slot: usize)
behavioral/command/undo/src/remote_control.rs:30
↓ 3 callersMethodoff_button_pushed
(&self, slot: usize)
behavioral/command/command2/src/remote_control.rs:25
↓ 3 callersMethodon_button_pushed
(&mut self, slot: usize)
behavioral/command/undo/src/remote_control.rs:25
↓ 3 callersMethodon_button_pushed
(&self, slot: usize)
behavioral/command/command2/src/remote_control.rs:21
↓ 3 callersMethodset_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 callersMethodset_command
(&mut self, slot: usize, on_command: Box<dyn Command>, off_command: Box<dyn Command>)
behavioral/command/command2/src/remote_control.rs:16
↓ 3 callersMethodset_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-2/src/subject.rs:37
↓ 3 callersMethodturn_crank
(&mut self)
behavioral/state/src/gumball_machine.rs:37
↓ 2 callersMethodadd_item
(&mut self, name: &str, description: &str, vegetarian: bool, price: f64)
behavioral/iterator/src/diner_menu.rs:24
↓ 2 callersMethodbutton_pressed
(&self)
behavioral/command/command1/src/remote_control.rs:17
↓ 2 callersMethoddim
(&mut self, level: i32)
behavioral/command/undo/src/light.rs:23
↓ 2 callersMethodexecute
(&mut self)
behavioral/command/undo/src/command.rs:12
↓ 2 callersMethodexecute
(&self)
behavioral/command/command2/src/command.rs:11
↓ 2 callersMethodget_id
(&self)
behavioral/observer/observer-1/src/observer.rs:21
↓ 2 callersMethodget_id
(&self)
behavioral/observer/observer-2/src/observer.rs:21
↓ 2 callersMethodget_level
(&self)
behavioral/command/undo/src/light.rs:32
↓ 2 callersMethodoff
(&mut self)
behavioral/command/undo/src/light.rs:18
↓ 2 callersMethodoff
(&self)
behavioral/command/command2/src/light.rs:15
↓ 2 callersMethodoff
(&self)
structural/bridge/src/lg.rs:16
↓ 2 callersMethodoff
(&self)
structural/facade/src/tuner.rs:20
↓ 2 callersMethodon
(&self)
behavioral/command/command2/src/light.rs:11
↓ 2 callersMethodon
(&self)
structural/bridge/src/lg.rs:12
↓ 2 callersMethodon
(&self)
structural/facade/src/tuner.rs:16
↓ 2 callersMethodorder_pizza
(&self, t: &str)
creational/factory/simple-factory/src/pizza_store.rs:7
↓ 2 callersMethodorder_pizza
(&self, t: &str)
creational/factory/factory-method/src/pizza_store.rs:5
↓ 2 callersMethodperform_fly
(&self)
behavioral/strategy/strategy-1/src/duck.rs:24
↓ 2 callersMethodperform_fly
(&self, fly: &T)
behavioral/strategy/strategy-2/src/duck.rs:6
↓ 2 callersMethodperform_quack
(&self)
behavioral/strategy/strategy-1/src/duck.rs:28
↓ 2 callersMethodprepare_recipe
(&self)
behavioral/template/src/caffeine_beverage.rs:2
↓ 2 callersMethodset_command
(&mut self, slot: Box<dyn Command>)
behavioral/command/command1/src/remote_control.rs:13
↓ 2 callersMethodset_fly_behavior
(&mut self, fly_behavior: Box<dyn FlyBehavior>)
behavioral/strategy/strategy-1/src/duck.rs:16
↓ 2 callersMethodset_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-1/src/subject.rs:34
↓ 2 callersMethodset_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-1x/src/subject.rs:29
↓ 2 callersMethodset_measurement
(&mut self, tmp: f64)
behavioral/observer/observer-3/src/subject.rs:36
↓ 2 callersFunctiontest_duck
(duck: &T)
structural/adapter/src/main.rs:3
↓ 2 callersMethodundo_button_pushed
(&mut self)
behavioral/command/undo/src/remote_control.rs:35
↓ 1 callersMethodadd_condiment
(&self)
behavioral/template/src/tea.rs:10
↓ 1 callersMethodbake
(&self)
creational/factory/abstract-factory/src/pizza.rs:7
↓ 1 callersMethodbake
(&self)
creational/factory/simple-factory/src/pizza.rs:8
↓ 1 callersMethodbake
(&self)
creational/factory/factory-method/src/pizza.rs:8
↓ 1 callersMethodboil_water
(&self)
behavioral/template/src/caffeine_beverage.rs:10
↓ 1 callersMethodboxes
(&self)
creational/factory/abstract-factory/src/pizza.rs:13
↓ 1 callersMethodboxes
(&self)
creational/factory/simple-factory/src/pizza.rs:16
↓ 1 callersMethodboxes
(&self)
creational/factory/factory-method/src/pizza.rs:16
↓ 1 callersMethodbrew
(&self)
behavioral/template/src/tea.rs:6
↓ 1 callersMethodbubbles_on
(&self)
behavioral/command/command2/src/hottub.rs:20
↓ 1 callersMethodcool
(&mut self)
behavioral/command/command2/src/hottub.rs:41
↓ 1 callersMethodcount
(&self)
behavioral/state/src/gumball_machine.rs:52
↓ 1 callersMethodcreate_clam
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:44
↓ 1 callersMethodcreate_pizza
(&self, t: &str)
creational/factory/abstract-factory/src/pizza_store.rs:20
↓ 1 callersMethodcreate_pizza
(&self, t: &str)
creational/factory/factory-method/src/ny_pizza.rs:6
↓ 1 callersMethodcreate_veggies
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:31
↓ 1 callersMethodcut
(&self)
creational/factory/abstract-factory/src/pizza.rs:10
↓ 1 callersMethodcut
(&self)
creational/factory/simple-factory/src/pizza.rs:12
↓ 1 callersMethodcut
(&self)
creational/factory/factory-method/src/pizza.rs:12
↓ 1 callersMethoddispense
(self: Box<Self>, machine: &'a mut GumballMachine)
behavioral/state/src/sold_state.rs:24
↓ 1 callersMethoddisplay
(&self)
behavioral/strategy/strategy-2/src/duck.rs:19
↓ 1 callersMethoddown
(&self)
structural/bridge/src/special_remote.rs:23
↓ 1 callersMethoddrive
(&self)
structural/proxy/src/lib.rs:8
↓ 1 callersMethodexecute
(&self)
behavioral/command/command1/src/command.rs:10
↓ 1 callersMethodfly
(&self)
behavioral/strategy/strategy-1/src/fly_behavior.rs:7
↓ 1 callersMethodfly
(&self)
behavioral/strategy/strategy-2/src/fly_behavior.rs:7
↓ 1 callersMethodfly
(&self)
structural/adapter/src/duck.rs:12
↓ 1 callersMethodgobble
(&self)
structural/adapter/src/turkey.rs:8
↓ 1 callersMethodheat
(&mut self)
behavioral/command/command2/src/hottub.rs:36
↓ 1 callersMethodlisten_radio
(&mut self, frequency: f64)
structural/facade/src/home_theater.rs:15
↓ 1 callersMethodnext_channel
(&self)
structural/bridge/src/generic_remote.rs:20
↓ 1 callersMethodnotify_observers
(&self)
behavioral/observer/observer-1/src/subject.rs:29
↓ 1 callersMethodnotify_observers
(&self)
behavioral/observer/observer-1x/src/subject.rs:23
↓ 1 callersMethodnotify_observers
(&self)
behavioral/observer/observer-3/src/subject.rs:28
↓ 1 callersMethodnotify_observers
(&self)
behavioral/observer/observer-2/src/subject.rs:32
↓ 1 callersMethodoff
(&self)
behavioral/command/command1/src/light.rs:8
↓ 1 callersMethodon
(&mut self)
behavioral/command/undo/src/light.rs:13
↓ 1 callersMethodon
(&self)
behavioral/command/command1/src/light.rs:4
↓ 1 callersMethodpour_in_cup
(&self)
behavioral/template/src/caffeine_beverage.rs:13
↓ 1 callersMethodprepare
(&mut self)
creational/factory/abstract-factory/src/pizza.rs:40
↓ 1 callersMethodprepare
(&self)
creational/factory/simple-factory/src/pizza.rs:4
↓ 1 callersMethodprepare
(&self)
creational/factory/factory-method/src/pizza.rs:4
↓ 1 callersMethodprev_channel
(&self)
structural/bridge/src/generic_remote.rs:24
↓ 1 callersMethodprint
(&self)
structural/composite/src/menu.rs:36
↓ 1 callersMethodprint_menu
(&self)
behavioral/iterator/src/waitress.rs:12
↓ 1 callersMethodprint_menu
(&self)
structural/composite/src/waitress.rs:12
↓ 1 callersMethodquack
(&self)
behavioral/strategy/strategy-1/src/quack_behavior.rs:7
↓ 1 callersMethodquack
(&self)
behavioral/strategy/strategy-2/src/quack_behavior.rs:7
↓ 1 callersMethodquack
(&self)
structural/adapter/src/duck.rs:8
↓ 1 callersMethodrelease_ball
(&mut self)
behavioral/state/src/gumball_machine.rs:46
next →1–100 of 257, ranked by callers