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
Method
new
()
behavioral/command/command1/src/remote_control.rs:9
Method
new
(light: Rc<RefCell<Light>>)
behavioral/command/command2/src/command.rs:18
Method
new
(location: &str)
behavioral/command/command2/src/light.rs:5
Method
new
()
behavioral/command/command2/src/remote_control.rs:9
Method
new
()
behavioral/command/command2/src/hottub.rs:8
Method
new
(count: usize)
behavioral/state/src/gumball_machine.rs:11
Method
new
()
behavioral/iterator/src/pancake_menu.rs:8
Method
new
()
behavioral/iterator/src/diner_menu.rs:11
Method
new
(name: &str, description: &str, vegetarian: bool, price: f64)
behavioral/iterator/src/menu_item.rs:14
Method
new
(menus: Vec<Box<dyn Menu>>)
behavioral/iterator/src/waitress.rs:8
Method
new
(id: usize)
behavioral/observer/observer-1/src/observer.rs:10
Method
new
()
behavioral/observer/observer-1/src/subject.rs:9
Method
new
()
behavioral/observer/observer-1x/src/subject.rs:9
Method
new
()
behavioral/observer/observer-3/src/subject.rs:11
Method
new
(id: usize)
behavioral/observer/observer-2/src/observer.rs:10
Method
new
()
behavioral/observer/observer-2/src/subject.rs:12
Method
new
(beverage: Box<dyn Beverage>)
structural/decorator/src/beverage.rs:28
Method
new
()
structural/bridge/src/sony.rs:8
Method
new
(tv: Rc<RefCell<dyn TV>>)
structural/bridge/src/generic_remote.rs:16
Method
new
()
structural/bridge/src/lg.rs:7
Method
new
(tv: Rc<RefCell<dyn TV>>)
structural/bridge/src/special_remote.rs:16
Method
new
(name: &str, description: &str)
structural/composite/src/menu.rs:10
Method
new
(name: &str, description: &str, vegetarian: bool, price: f64)
structural/composite/src/menu_item.rs:11
Method
new
(menus: Box<dyn MenuComponent>)
structural/composite/src/waitress.rs:8
Method
new
(amp: Amplifier, tuner: Tuner)
structural/facade/src/home_theater.rs:11
Method
new
(description: &str)
structural/facade/src/amplifier.rs:12
Method
new
(description: &str)
structural/facade/src/tuner.rs:8
Method
new
(driver_age: i32, other_car: &'a dyn ICar)
structural/proxy/src/lib.rs:29
Method
new
(turkey: Box<dyn Turkey>)
structural/adapter/src/turkey_adapter.rs:8
Method
new
(factory: Box<dyn PizzaIngredientFactory>, name: &str)
creational/factory/abstract-factory/src/pizza.rs:28
Method
new
()
creational/factory/simple-factory/src/pizza.rs:26
Method
new
()
creational/factory/factory-method/src/ny_pizza.rs:21
Method
new
()
creational/factory/factory-method/src/chicago_pizza.rs:21
Method
off
(&mut self)
behavioral/command/command2/src/hottub.rs:16
Method
off
(&self)
structural/bridge/src/sony.rs:18
Method
off
(&self)
structural/bridge/src/remote_control.rs:10
Method
off
(&self)
structural/facade/src/amplifier.rs:24
Method
on
(&mut self)
behavioral/command/command2/src/hottub.rs:12
Method
on
(&self)
structural/bridge/src/sony.rs:14
Method
on
(&self)
structural/bridge/src/remote_control.rs:7
Method
on
(&self)
structural/facade/src/amplifier.rs:20
Method
perform_quack
(&self, quack: &T)
behavioral/strategy/strategy-2/src/duck.rs:9
Method
price
(&self)
behavioral/iterator/src/menu_item.rs:34
Method
price
(&self)
structural/composite/src/menu_component.rs:18
Method
price
(&self)
structural/composite/src/menu_item.rs:29
Method
print
(&self)
structural/composite/src/menu_component.rs:26
Method
print
(&self)
structural/composite/src/menu_item.rs:37
Method
quack
(&self)
structural/adapter/src/turkey_adapter.rs:14
Method
set_am
(&mut self)
structural/facade/src/tuner.rs:28
Method
set_fm
(&mut self)
structural/facade/src/tuner.rs:33
Method
set_temperature
(&mut self, temp: i32)
behavioral/command/command2/src/hottub.rs:32
Method
turn_channel
(&mut self, channel: i32)
structural/bridge/src/sony.rs:22
Method
turn_crank
(self: Box<Self>)
behavioral/state/src/sold_out_state.rs:17
Method
turn_crank
(self: Box<Self>)
behavioral/state/src/has_quarter_state.rs:19
Method
turn_crank
(self: Box<Self>)
behavioral/state/src/no_quarter_state.rs:18
Method
turn_crank
(self: Box<Self>)
behavioral/state/src/sold_state.rs:19
Method
tv
(&self)
structural/bridge/src/special_remote.rs:10
← previous
201–257 of 257, ranked by callers