MCPcopy Create free account

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

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

↓ 1 callersMethodremove_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1/src/subject.rs:21
↓ 1 callersMethodremove_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1x/src/subject.rs:17
↓ 1 callersMethodremove_observer
(&mut self, observer: &Rc<dyn Observer>)
behavioral/observer/observer-3/src/subject.rs:19
↓ 1 callersMethodremove_observer
(&mut self, observer: Rc<RefCell<dyn Observer>>)
behavioral/observer/observer-2/src/subject.rs:24
↓ 1 callersMethodset_frequency
(&mut self, frequency: f64)
structural/facade/src/tuner.rs:24
↓ 1 callersMethodset_quack_behavior
(&mut self, quack_behavior: Box<dyn QuackBehavior>)
behavioral/strategy/strategy-1/src/duck.rs:20
↓ 1 callersMethodset_tuner
(&mut self, tuner: Rc<RefCell<Tuner>>)
structural/facade/src/amplifier.rs:33
↓ 1 callersMethodset_volume
(&mut self, level: i32)
structural/facade/src/amplifier.rs:28
↓ 1 callersMethodstop_radio
(&self)
structural/facade/src/home_theater.rs:24
↓ 1 callersMethodswim
(&self)
behavioral/strategy/strategy-2/src/duck.rs:12
↓ 1 callersMethodturn_channel
(&mut self, channel: i32)
structural/bridge/src/lg.rs:20
↓ 1 callersMethodundo
(&mut self)
behavioral/command/undo/src/command.rs:14
↓ 1 callersMethodup
(&self)
behavioral/command/command1/src/garage_door.rs:4
↓ 1 callersMethodup
(&self)
structural/bridge/src/special_remote.rs:19
↓ 1 callersMethodupdate
(&self, tmp: f64)
behavioral/observer/observer-1/src/observer.rs:15
↓ 1 callersMethodupdate
(&self, tmp: f64)
behavioral/observer/observer-1x/src/observer.rs:7
↓ 1 callersMethodupdate
(&self, tmp: f64)
behavioral/observer/observer-3/src/observer.rs:7
↓ 1 callersMethodupdate
(&mut self, tmp: f64)
behavioral/observer/observer-2/src/observer.rs:15
Methodadd
(&mut self, _component: Box<dyn MenuComponent>)
structural/composite/src/menu_component.rs:2
Methodadd_condiment
(&self)
behavioral/template/src/coffee.rs:10
Methodadd_item
(&mut self, name: &str, description: &str, vegetarian: bool, price: f64)
behavioral/iterator/src/pancake_menu.rs:24
Methodbrew
(&self)
behavioral/template/src/coffee.rs:6
Methodbubbles_off
(&self)
behavioral/command/command2/src/hottub.rs:26
Methodchannel
(&self)
structural/bridge/src/sony.rs:27
Methodchannel
(&self)
structural/bridge/src/remote_control.rs:16
Methodcost
(&self)
structural/decorator/src/beverage.rs:7
Methodcreate_pepperoni
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:40
Methodcreate_pizza
(t: &str)
creational/factory/simple-factory/src/simple_pizza_factory.rs:9
Methodcreate_pizza
(&self, t: &str)
creational/factory/factory-method/src/chicago_pizza.rs:6
Methodcut
(&self)
creational/factory/factory-method/src/chicago_pizza.rs:33
Methoddescription
(&self)
behavioral/iterator/src/menu_item.rs:26
Methoddescription
(&self)
structural/composite/src/menu.rs:32
Methoddescription
(&self)
structural/composite/src/menu_component.rs:14
Methoddescription
(&self)
structural/composite/src/menu_item.rs:25
Methoddispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/sold_out_state.rs:22
Methoddispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/has_quarter_state.rs:24
Methoddispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/no_quarter_state.rs:23
Methoddown
(&self)
behavioral/command/command1/src/garage_door.rs:8
Methodeject_quarter
(self: Box<Self>)
behavioral/state/src/sold_out_state.rs:12
Methodeject_quarter
(self: Box<Self>)
behavioral/state/src/has_quarter_state.rs:14
Methodeject_quarter
(self: Box<Self>)
behavioral/state/src/no_quarter_state.rs:13
Methodeject_quarter
(self: Box<Self>)
behavioral/state/src/sold_state.rs:14
Methodeject_quarter
(&mut self)
behavioral/state/src/gumball_machine.rs:31
Methodempty
()
behavioral/iterator/src/menu_item.rs:10
Methodfly
(&self)
structural/adapter/src/turkey.rs:12
Methodfly
(&self)
structural/adapter/src/turkey_adapter.rs:18
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/cheese.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/veggies.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/pepperoni.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/dough.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/pizza.rs:53
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/clams.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/sauce.rs:8
Methodget_child
(&self, i: usize)
structural/composite/src/menu.rs:24
Methodget_child
(&self, _i: usize)
structural/composite/src/menu_component.rs:6
Methodget_description
(&self)
creational/singleton/src/singleton.rs:6
Methodinsert_quarter
(self: Box<Self>)
behavioral/state/src/sold_out_state.rs:7
Methodinsert_quarter
(self: Box<Self>)
behavioral/state/src/has_quarter_state.rs:9
Methodinsert_quarter
(self: Box<Self>)
behavioral/state/src/no_quarter_state.rs:8
Methodinsert_quarter
(self: Box<Self>)
behavioral/state/src/sold_state.rs:9
Methodis_vegetarian
(&self)
behavioral/iterator/src/menu_item.rs:30
Methodis_vegetarian
(&self)
structural/composite/src/menu_component.rs:22
Methodis_vegetarian
(&self)
structural/composite/src/menu_item.rs:33
Methoditer
(&self)
behavioral/iterator/src/pancake_menu.rs:31
Functionmain
()
behavioral/strategy/strategy-1/src/main.rs:3
Functionmain
()
behavioral/strategy/strategy-2/src/main.rs:6
Functionmain
()
behavioral/command/undo/src/bin/main.rs:5
Functionmain
()
behavioral/command/undo/src/bin/macro_command.rs:5
Functionmain
()
behavioral/command/command1/src/main.rs:3
Functionmain
()
behavioral/command/command2/src/main.rs:5
Functionmain
()
behavioral/state/src/main.rs:3
Functionmain
()
behavioral/iterator/src/main.rs:3
Functionmain
()
behavioral/template/src/main.rs:3
Functionmain
()
behavioral/observer/observer-1/src/main.rs:5
Functionmain
()
behavioral/observer/observer-1x/src/main.rs:5
Functionmain
()
behavioral/observer/observer-3/src/main.rs:5
Functionmain
()
behavioral/observer/observer-2/src/main.rs:9
Functionmain
()
structural/decorator/src/main.rs:3
Functionmain
()
structural/bridge/src/main.rs:5
Functionmain
()
structural/composite/src/main.rs:3
Functionmain
()
structural/facade/src/main.rs:3
Functionmain
()
structural/proxy/src/main.rs:3
Functionmain
()
structural/adapter/src/main.rs:7
Functionmain
()
creational/factory/abstract-factory/src/main.rs:3
Functionmain
()
creational/factory/simple-factory/src/main.rs:3
Functionmain
()
creational/factory/factory-method/src/main.rs:3
Functionmain
()
creational/singleton/src/main.rs:3
Methodname
(&self)
behavioral/iterator/src/menu_item.rs:22
Methodname
(&self)
structural/composite/src/menu.rs:28
Methodname
(&self)
structural/composite/src/menu_component.rs:10
Methodname
(&self)
structural/composite/src/menu_item.rs:21
Methodname
(&self)
creational/factory/abstract-factory/src/pizza.rs:47
Methodname
(&self)
creational/factory/simple-factory/src/pizza.rs:34
Methodname
(&self)
creational/factory/factory-method/src/ny_pizza.rs:29
Methodname
(&self)
creational/factory/factory-method/src/chicago_pizza.rs:29
Methodnew
()
behavioral/strategy/strategy-1/src/duck.rs:9
Methodnew
(light: Rc<RefCell<Light>>)
behavioral/command/undo/src/command.rs:24
Methodnew
(location: &str)
behavioral/command/undo/src/light.rs:6
Methodnew
()
behavioral/command/undo/src/remote_control.rs:12
Methodnew
(light: Light)
behavioral/command/command1/src/command.rs:18
← previousnext →101–200 of 257, ranked by callers