Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fadeevab/design-patterns-rust
/ functions
Functions
277 in github.com/fadeevab/design-patterns-rust
⨍
Functions
277
◇
Types & classes
119
↓ 1 callers
Method
prev
(self: Box<Self>, player: &mut Player)
behavioral/state/state.rs:105
↓ 1 callers
Method
prev_track
(&mut self)
behavioral/state/player.rs:45
↓ 1 callers
Method
print
(&self)
behavioral/memento/conceptual.rs:29
↓ 1 callers
Method
refresh
(&self)
creational/factory-method/render-dialog/gui.rs:18
↓ 1 callers
Function
render
Renders GUI.
creational/abstract-factory/app-dyn/render.rs:7
↓ 1 callers
Method
render
(&self, _: &Player, view: &mut TextView)
behavioral/state/state.rs:41
↓ 1 callers
Method
render
(&self)
creational/simple-factory/button/id.rs:14
↓ 1 callers
Method
render
(&self)
creational/factory-method/render-dialog/html_gui.rs:6
↓ 1 callers
Method
render
(&self)
creational/factory-method/maze-game/magic_maze.rs:15
↓ 1 callers
Method
required_operations1
(&self)
behavioral/template-method/main.rs:34
↓ 1 callers
Method
required_operations2
(&self)
behavioral/template-method/main.rs:38
↓ 1 callers
Method
rooms
(&self)
creational/factory-method/maze-game/magic_maze.rs:38
↓ 1 callers
Function
run
()
creational/singleton/logger/app.rs:3
↓ 1 callers
Method
search
(&self, keyword: &str)
structural/composite/fs/file.rs:14
↓ 1 callers
Method
send_wallet_credit_notification
(&self)
structural/facade/notification.rs:4
↓ 1 callers
Method
send_wallet_debit_notification
(&self)
structural/facade/notification.rs:8
↓ 1 callers
Function
set_boxed_logger
(logger: Box<dyn Log + Sync + Send>)
creational/singleton/logger/log.rs:10
↓ 1 callers
Function
singleton_init
(array: Vec<i32>)
creational/singleton/how-to-create/once.rs:11
↓ 1 callers
Method
specific_request
(&self)
structural/adapter/adaptee.rs:4
↓ 1 callers
Method
started
(&self)
creational/builder/components.rs:39
↓ 1 callers
Method
stop
(self: Box<Self>, _: &mut Player)
behavioral/state/state.rs:36
↓ 1 callers
Method
template_method
(&self)
behavioral/template-method/main.rs:2
↓ 1 callers
Method
undo
(&mut self, app: &mut Cursive)
behavioral/command/command/cut.rs:24
↓ 1 callers
Method
unsubscribe
(&mut self, event_type: Event, listener: Subscriber)
behavioral/observer/observer.rs:25
↓ 1 callers
Method
volume_down
(&mut self)
structural/bridge/remotes/mod.rs:23
↓ 1 callers
Method
volume_up
(&mut self)
structural/bridge/remotes/mod.rs:29
↓ 1 callers
Function
warn
(message: &str)
creational/singleton/logger/log.rs:42
Method
arrive
(&self)
behavioral/mediator/mediator-rc-refcell/trains/passenger_train.rs:22
Method
arrive
(&mut self, mediator: &mut dyn Mediator)
behavioral/mediator/mediator-top-down/trains/passenger_train.rs:19
Method
build
(self)
creational/builder/builders/car_manual.rs:41
Method
cache_len
(&self)
structural/flyweight/forest.rs:47
Method
car_type
(&self)
creational/builder/cars/car.rs:31
Method
channel
(&self)
structural/bridge/device/radio.rs:41
Method
channel_down
(&mut self)
structural/bridge/remotes/mod.rs:35
Method
channel_up
(&mut self)
structural/bridge/remotes/mod.rs:41
Method
check
(&self, code: u32)
structural/facade/security_code.rs:10
Method
construct_city_car
(builder: &mut impl Builder)
creational/builder/director.rs:21
Method
construct_sports_car
(builder: &mut impl Builder)
creational/builder/director.rs:13
Method
construct_suv
(builder: &mut impl Builder)
creational/builder/director.rs:29
Method
create
(visitor: V)
behavioral/visitor/main.rs:44
Method
create_button
(&self)
creational/abstract-factory/windows-gui/factory.rs:11
Method
create_button
Creates a Windows button.
creational/factory-method/render-dialog/windows_gui.rs:20
Method
create_checkbox
(&self)
creational/abstract-factory/windows-gui/factory.rs:15
Method
default
()
behavioral/state/player.rs:26
Method
default
()
structural/bridge/device/radio.rs:11
Method
default
()
structural/bridge/device/tv.rs:11
Method
depart
(&self)
behavioral/mediator/mediator-rc-refcell/trains/passenger_train.rs:31
Method
depart
(&mut self, mediator: &mut dyn Mediator)
behavioral/mediator/mediator-top-down/trains/freight_train.rs:28
Method
depart
(&mut self, mediator: &mut dyn Mediator)
behavioral/mediator/mediator-top-down/trains/passenger_train.rs:28
Method
device
(&mut self)
structural/bridge/remotes/advanced.rs:21
Method
disable
(&mut self)
structural/bridge/device/radio.rs:29
Method
draw
(&self, canvas: &mut Canvas, x: u32, y: u32)
structural/flyweight/forest/tree.rs:40
Method
enable
(&mut self)
structural/bridge/device/radio.rs:25
Method
engine
(&self)
creational/builder/cars/car.rs:47
Method
execute
(&mut self, app: &mut Cursive)
behavioral/command/command/paste.rs:12
Method
execute
(&mut self, app: &mut Cursive)
behavioral/command/command/copy.rs:10
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
creational/singleton/logger/log.rs:51
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
creational/builder/cars/manual.rs:30
Method
from_route
(route: String)
creational/builder/components.rs:71
Method
fuel
(&self)
creational/builder/cars/car.rs:35
Method
go
(&mut self, mileage: f64)
creational/builder/components.rs:51
Method
gps_navigator
(&self)
creational/builder/cars/car.rs:55
Method
handle
(&mut self, patient: &mut Patient)
behavioral/chain-of-responsibility/department/cashier.rs:9
Method
handle
(&mut self, patient: &mut Patient)
behavioral/chain-of-responsibility/department/medical.rs:16
Method
handle
(&mut self, patient: &mut Patient)
behavioral/chain-of-responsibility/department/reception.rs:17
Method
handle_request
(&mut self, url: &str, method: &str)
structural/proxy/server/application.rs:6
Method
is_enabled
(&self)
structural/bridge/device/radio.rs:21
Method
load
Constructs an object by reading from database.
creational/static-creation-method/main.rs:13
Function
main
()
behavioral/strategy/conceptual.rs:39
Function
main
()
behavioral/strategy/functional.rs:28
Function
main
()
behavioral/memento/serde.rs:23
Function
main
()
behavioral/memento/conceptual.rs:34
Function
main
()
behavioral/command/main.rs:19
Function
main
()
behavioral/chain-of-responsibility/main.rs:7
Function
main
()
behavioral/state/main.rs:19
Function
main
()
behavioral/mediator/mediator-rc-refcell/main.rs:9
Function
main
()
behavioral/mediator/mediator-top-down/main.rs:7
Function
main
()
behavioral/iterator/main.rs:5
Function
main
()
behavioral/visitor/main.rs:74
Function
main
()
behavioral/template-method/main.rs:59
Function
main
()
behavioral/observer/main.rs:7
Function
main
()
structural/decorator/main.rs:3
Function
main
()
structural/bridge/main.rs:8
Function
main
()
structural/composite/main.rs:5
Function
main
()
structural/facade/main.rs:10
Function
main
()
structural/proxy/main.rs:5
Function
main
()
structural/flyweight/main.rs:12
Function
main
()
structural/adapter/main.rs:19
Function
main
()
creational/abstract-factory/app/main.rs:8
Function
main
()
creational/abstract-factory/app-dyn/main.rs:9
Function
main
()
creational/simple-factory/main.rs:21
Function
main
()
creational/singleton/logger/main.rs:7
Function
main
()
creational/singleton/how-to-create/mutex.rs:18
Function
main
()
creational/singleton/how-to-create/lazy.rs:23
Function
main
()
creational/singleton/how-to-create/once.rs:19
Function
main
()
creational/singleton/how-to-create/local.rs:9
Function
main
()
creational/factory-method/render-dialog/main.rs:8
Function
main
The game runs with different mazes depending on the concrete factory type: it's either an ordinary maze or a magic maze. For demonstration purposes,
creational/factory-method/maze-game/main.rs:12
Function
main
()
creational/builder/main.rs:12
Function
main
()
creational/static-creation-method/main.rs:33
← previous
next →
101–200 of 277, ranked by callers