MCPcopy Create free account

hub / github.com/fadeevab/design-patterns-rust / functions

Functions277 in github.com/fadeevab/design-patterns-rust

Functionmain
()
creational/prototype/main.rs:8
Methodmileage
(&self)
creational/builder/components.rs:47
Methodname
(&self)
behavioral/mediator/mediator-rc-refcell/trains/passenger_train.rs:18
Methodname
(&self)
behavioral/mediator/mediator-top-down/trains/passenger_train.rs:15
Methodname
(&self)
creational/static-creation-method/main.rs:24
Methodnew
(route_strategy: T)
behavioral/strategy/conceptual.rs:30
Methodnew
(route_strategy: RouteStrategy)
behavioral/strategy/functional.rs:19
Methodnew
(next: impl Department + 'static)
behavioral/chain-of-responsibility/department/medical.rs:8
Methodnew
(next: impl Department + 'static)
behavioral/chain-of-responsibility/department/doctor.rs:8
Methodnew
(next: impl Department + 'static)
behavioral/chain-of-responsibility/department/reception.rs:9
Methodnew
(title: &'static str, duration: u32)
behavioral/state/player.rs:9
Methodnew
(name: String, mediator: Rc<RefCell<dyn Mediator>>)
behavioral/mediator/mediator-rc-refcell/trains/freight_train.rs:12
Methodnew
(name: String, mediator: Rc<RefCell<dyn Mediator>>)
behavioral/mediator/mediator-rc-refcell/trains/passenger_train.rs:12
Methodnew
(name: &'static str)
behavioral/mediator/mediator-top-down/trains/freight_train.rs:9
Methodnew
(name: &'static str)
behavioral/mediator/mediator-top-down/trains/passenger_train.rs:9
Methodnew
Returns a custom user collection.
behavioral/iterator/users.rs:8
Methodnew
(device: D)
structural/bridge/remotes/basic.rs:10
Methodnew
(device: D)
structural/bridge/remotes/advanced.rs:10
Methodnew
(name: &'static str)
structural/composite/fs/folder.rs:9
Methodnew
(name: &'static str)
structural/composite/fs/file.rs:8
Methodnew
(name: String)
structural/facade/account.rs:6
Methodnew
()
structural/facade/wallet.rs:6
Methodnew
(account_id: String, code: u32)
structural/facade/wallet_facade.rs:16
Methodnew
(code: u32)
structural/facade/security_code.rs:6
Methodnew
()
structural/proxy/server/nginx.rs:13
Methodnew
(color: TreeColor, _name: String, _data: String)
structural/flyweight/forest/tree.rs:32
Methodnew
(adaptee: SpecificTarget)
structural/adapter/adapter.rs:9
Methodnew
(id: u32)
creational/simple-factory/button/id.rs:8
Methodnew
(title: String)
creational/simple-factory/button/title.rs:8
Methodnew
(title: String)
creational/factory-method/maze-game/magic_maze.rs:9
Methodnew
(id: u32)
creational/factory-method/maze-game/ordinary_maze.rs:9
Methodnew
(volume: f64, mileage: f64)
creational/builder/components.rs:23
Methodnew
( car_type: CarType, seats: u16, engine: Engine, transmission: Transmission,
creational/builder/cars/car.rs:13
Methodnew
( car_type: CarType, seats: u16, engine: Engine, transmission: Transmission,
creational/builder/cars/manual.rs:12
Methodnew
"Static creation method" is actually a Rust's idiomatic way to define a "constructor".
creational/static-creation-method/main.rs:8
Methodnext
(&mut self)
behavioral/chain-of-responsibility/department/cashier.rs:18
Methodnext
(&mut self)
behavioral/chain-of-responsibility/department/medical.rs:25
Methodnext
(&mut self)
behavioral/chain-of-responsibility/department/reception.rs:26
Methodnext
A `next` method is the only `Iterator` trait method which is mandatory to be implemented. It makes accessible a huge range of standard methods, e.g. `
behavioral/iterator/users.rs:41
Methodoff
(&mut self)
creational/builder/components.rs:35
Methodon
(&mut self)
creational/builder/components.rs:31
Methodparse_str
(&self, input: &str)
behavioral/visitor/main.rs:31
Methodparse_vec
(&self, input: Vec<i32>)
behavioral/visitor/main.rs:34
Methodplay
(self: Box<Self>, player: &mut Player)
behavioral/state/state.rs:29
Methodpress
(&self)
creational/abstract-factory/windows-gui/button.rs:6
Methodprint_status
(&self)
structural/bridge/device/radio.rs:49
Functionpublic_transport_strategy
(from: &str, to: &str)
behavioral/strategy/functional.rs:7
Methodrender
(&self)
creational/simple-factory/button/title.rs:14
Methodrender
(&self)
creational/factory-method/render-dialog/gui.rs:13
Methodrender
(&self)
creational/factory-method/render-dialog/windows_gui.rs:6
Methodrender
(&self)
creational/factory-method/maze-game/ordinary_maze.rs:15
Methodrequest
(&self)
structural/adapter/adapter.rs:15
Methodrequest
(&self)
structural/adapter/target.rs:8
Methodrestore
Deserializes an originator into a string of JSON format.
behavioral/memento/serde.rs:18
Methodrooms
(&self)
creational/factory-method/maze-game/ordinary_maze.rs:35
Methodroute
(&self)
creational/builder/components.rs:75
Functionsave_listener
(file_path: String)
behavioral/observer/main.rs:25
Methodsearch
(&self, keyword: &str)
structural/composite/fs/folder.rs:22
Methodseats
(&self)
creational/builder/cars/car.rs:43
Methodset_car_type
(&mut self, car_type: CarType)
creational/builder/builders/car_manual.rs:21
Methodset_channel
(&mut self, channel: u16)
structural/bridge/device/radio.rs:45
Methodset_engine
(&mut self, engine: Engine)
creational/builder/builders/car_manual.rs:25
Methodset_fuel
(&mut self, fuel: f64)
creational/builder/cars/car.rs:39
Methodset_gsp_navigator
(&mut self, gps_navigator: GpsNavigator)
creational/builder/builders/car_manual.rs:29
Methodset_seats
(&mut self, seats: u16)
creational/builder/builders/car_manual.rs:33
Methodset_transmission
(&mut self, transmission: Transmission)
creational/builder/builders/car_manual.rs:37
Methodset_volume
(&mut self, percent: u8)
structural/bridge/device/radio.rs:37
Methodsurname
(&self)
creational/static-creation-method/main.rs:28
Methodswitch
(&self)
creational/abstract-factory/windows-gui/checkbox.rs:6
Methodtrack
(&self)
behavioral/state/player.rs:61
Methodtransmission
(&self)
creational/builder/cars/car.rs:51
Functionundo
Pops the last command and executes an undo action.
behavioral/command/main.rs:46
Methodundo
(&mut self, app: &mut Cursive)
behavioral/command/command/paste.rs:23
Methodundo
(&mut self, _: &mut Cursive)
behavioral/command/command/copy.rs:20
Methodvolume
(&self)
structural/bridge/device/radio.rs:33
Methodvolume
(&self)
creational/builder/components.rs:43
Functionwalking_strategy
(from: &str, to: &str)
behavioral/strategy/functional.rs:3
← previous201–277 of 277, ranked by callers