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
↓ 1 callers
Method
remove_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1/src/subject.rs:21
↓ 1 callers
Method
remove_observer
(&mut self, observer: &'a dyn Observer)
behavioral/observer/observer-1x/src/subject.rs:17
↓ 1 callers
Method
remove_observer
(&mut self, observer: &Rc<dyn Observer>)
behavioral/observer/observer-3/src/subject.rs:19
↓ 1 callers
Method
remove_observer
(&mut self, observer: Rc<RefCell<dyn Observer>>)
behavioral/observer/observer-2/src/subject.rs:24
↓ 1 callers
Method
set_frequency
(&mut self, frequency: f64)
structural/facade/src/tuner.rs:24
↓ 1 callers
Method
set_quack_behavior
(&mut self, quack_behavior: Box<dyn QuackBehavior>)
behavioral/strategy/strategy-1/src/duck.rs:20
↓ 1 callers
Method
set_tuner
(&mut self, tuner: Rc<RefCell<Tuner>>)
structural/facade/src/amplifier.rs:33
↓ 1 callers
Method
set_volume
(&mut self, level: i32)
structural/facade/src/amplifier.rs:28
↓ 1 callers
Method
stop_radio
(&self)
structural/facade/src/home_theater.rs:24
↓ 1 callers
Method
swim
(&self)
behavioral/strategy/strategy-2/src/duck.rs:12
↓ 1 callers
Method
turn_channel
(&mut self, channel: i32)
structural/bridge/src/lg.rs:20
↓ 1 callers
Method
undo
(&mut self)
behavioral/command/undo/src/command.rs:14
↓ 1 callers
Method
up
(&self)
behavioral/command/command1/src/garage_door.rs:4
↓ 1 callers
Method
up
(&self)
structural/bridge/src/special_remote.rs:19
↓ 1 callers
Method
update
(&self, tmp: f64)
behavioral/observer/observer-1/src/observer.rs:15
↓ 1 callers
Method
update
(&self, tmp: f64)
behavioral/observer/observer-1x/src/observer.rs:7
↓ 1 callers
Method
update
(&self, tmp: f64)
behavioral/observer/observer-3/src/observer.rs:7
↓ 1 callers
Method
update
(&mut self, tmp: f64)
behavioral/observer/observer-2/src/observer.rs:15
Method
add
(&mut self, _component: Box<dyn MenuComponent>)
structural/composite/src/menu_component.rs:2
Method
add_condiment
(&self)
behavioral/template/src/coffee.rs:10
Method
add_item
(&mut self, name: &str, description: &str, vegetarian: bool, price: f64)
behavioral/iterator/src/pancake_menu.rs:24
Method
brew
(&self)
behavioral/template/src/coffee.rs:6
Method
bubbles_off
(&self)
behavioral/command/command2/src/hottub.rs:26
Method
channel
(&self)
structural/bridge/src/sony.rs:27
Method
channel
(&self)
structural/bridge/src/remote_control.rs:16
Method
cost
(&self)
structural/decorator/src/beverage.rs:7
Method
create_pepperoni
(&self)
creational/factory/abstract-factory/src/pizza_ingredient_factory.rs:40
Method
create_pizza
(t: &str)
creational/factory/simple-factory/src/simple_pizza_factory.rs:9
Method
create_pizza
(&self, t: &str)
creational/factory/factory-method/src/chicago_pizza.rs:6
Method
cut
(&self)
creational/factory/factory-method/src/chicago_pizza.rs:33
Method
description
(&self)
behavioral/iterator/src/menu_item.rs:26
Method
description
(&self)
structural/composite/src/menu.rs:32
Method
description
(&self)
structural/composite/src/menu_component.rs:14
Method
description
(&self)
structural/composite/src/menu_item.rs:25
Method
dispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/sold_out_state.rs:22
Method
dispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/has_quarter_state.rs:24
Method
dispense
(self: Box<Self>, _machine: &'a mut GumballMachine)
behavioral/state/src/no_quarter_state.rs:23
Method
down
(&self)
behavioral/command/command1/src/garage_door.rs:8
Method
eject_quarter
(self: Box<Self>)
behavioral/state/src/sold_out_state.rs:12
Method
eject_quarter
(self: Box<Self>)
behavioral/state/src/has_quarter_state.rs:14
Method
eject_quarter
(self: Box<Self>)
behavioral/state/src/no_quarter_state.rs:13
Method
eject_quarter
(self: Box<Self>)
behavioral/state/src/sold_state.rs:14
Method
eject_quarter
(&mut self)
behavioral/state/src/gumball_machine.rs:31
Method
empty
()
behavioral/iterator/src/menu_item.rs:10
Method
fly
(&self)
structural/adapter/src/turkey.rs:12
Method
fly
(&self)
structural/adapter/src/turkey_adapter.rs:18
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/cheese.rs:8
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/veggies.rs:8
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/pepperoni.rs:8
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/dough.rs:8
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/pizza.rs:53
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/clams.rs:8
Method
fmt
(&self, f: &mut fmt::Formatter)
creational/factory/abstract-factory/src/sauce.rs:8
Method
get_child
(&self, i: usize)
structural/composite/src/menu.rs:24
Method
get_child
(&self, _i: usize)
structural/composite/src/menu_component.rs:6
Method
get_description
(&self)
creational/singleton/src/singleton.rs:6
Method
insert_quarter
(self: Box<Self>)
behavioral/state/src/sold_out_state.rs:7
Method
insert_quarter
(self: Box<Self>)
behavioral/state/src/has_quarter_state.rs:9
Method
insert_quarter
(self: Box<Self>)
behavioral/state/src/no_quarter_state.rs:8
Method
insert_quarter
(self: Box<Self>)
behavioral/state/src/sold_state.rs:9
Method
is_vegetarian
(&self)
behavioral/iterator/src/menu_item.rs:30
Method
is_vegetarian
(&self)
structural/composite/src/menu_component.rs:22
Method
is_vegetarian
(&self)
structural/composite/src/menu_item.rs:33
Method
iter
(&self)
behavioral/iterator/src/pancake_menu.rs:31
Function
main
()
behavioral/strategy/strategy-1/src/main.rs:3
Function
main
()
behavioral/strategy/strategy-2/src/main.rs:6
Function
main
()
behavioral/command/undo/src/bin/main.rs:5
Function
main
()
behavioral/command/undo/src/bin/macro_command.rs:5
Function
main
()
behavioral/command/command1/src/main.rs:3
Function
main
()
behavioral/command/command2/src/main.rs:5
Function
main
()
behavioral/state/src/main.rs:3
Function
main
()
behavioral/iterator/src/main.rs:3
Function
main
()
behavioral/template/src/main.rs:3
Function
main
()
behavioral/observer/observer-1/src/main.rs:5
Function
main
()
behavioral/observer/observer-1x/src/main.rs:5
Function
main
()
behavioral/observer/observer-3/src/main.rs:5
Function
main
()
behavioral/observer/observer-2/src/main.rs:9
Function
main
()
structural/decorator/src/main.rs:3
Function
main
()
structural/bridge/src/main.rs:5
Function
main
()
structural/composite/src/main.rs:3
Function
main
()
structural/facade/src/main.rs:3
Function
main
()
structural/proxy/src/main.rs:3
Function
main
()
structural/adapter/src/main.rs:7
Function
main
()
creational/factory/abstract-factory/src/main.rs:3
Function
main
()
creational/factory/simple-factory/src/main.rs:3
Function
main
()
creational/factory/factory-method/src/main.rs:3
Function
main
()
creational/singleton/src/main.rs:3
Method
name
(&self)
behavioral/iterator/src/menu_item.rs:22
Method
name
(&self)
structural/composite/src/menu.rs:28
Method
name
(&self)
structural/composite/src/menu_component.rs:10
Method
name
(&self)
structural/composite/src/menu_item.rs:21
Method
name
(&self)
creational/factory/abstract-factory/src/pizza.rs:47
Method
name
(&self)
creational/factory/simple-factory/src/pizza.rs:34
Method
name
(&self)
creational/factory/factory-method/src/ny_pizza.rs:29
Method
name
(&self)
creational/factory/factory-method/src/chicago_pizza.rs:29
Method
new
()
behavioral/strategy/strategy-1/src/duck.rs:9
Method
new
(light: Rc<RefCell<Light>>)
behavioral/command/undo/src/command.rs:24
Method
new
(location: &str)
behavioral/command/undo/src/light.rs:6
Method
new
()
behavioral/command/undo/src/remote_control.rs:12
Method
new
(light: Light)
behavioral/command/command1/src/command.rs:18
← previous
next →
101–200 of 257, ranked by callers