MCPcopy Index your code

hub / github.com/fadeevab/design-patterns-rust / types & classes

Types & classes119 in github.com/fadeevab/design-patterns-rust

ClassAccount
structural/facade/account.rs:1
ClassAdvancedRemote
structural/bridge/remotes/advanced.rs:5
ClassAppContext
behavioral/command/main.rs:14
ClassApplication
structural/proxy/server/application.rs:3
ClassBasicRemote
structural/bridge/remotes/basic.rs:5
InterfaceBuilder
Builder defines how to assemble a car.
creational/builder/builders/mod.rs:7
InterfaceButton
creational/abstract-factory/gui/lib.rs:1
InterfaceButton
creational/simple-factory/button/mod.rs:4
InterfaceButton
creational/factory-method/render-dialog/gui.rs:1
ClassCar
creational/builder/cars/car.rs:3
ClassCarBuilder
creational/builder/builders/car.rs:11
ClassCarManualBuilder
creational/builder/builders/car_manual.rs:9
EnumCarType
creational/builder/components.rs:2
ClassCashier
behavioral/chain-of-responsibility/department/cashier.rs:4
InterfaceCheckbox
creational/abstract-factory/gui/lib.rs:5
ClassCircle
creational/prototype/main.rs:2
InterfaceCommand
Declares a method for executing (and undoing) a command. Each command receives an application context to access visual components (e.g. edit view) an
behavioral/command/command.rs:13
InterfaceComponent
structural/composite/fs/mod.rs:7
ClassConcreteStruct1
behavioral/template-method/main.rs:31
ClassConcreteStruct2
behavioral/template-method/main.rs:43
ClassCopyCommand
behavioral/command/command/copy.rs:7
ClassCutCommand
behavioral/command/command/cut.rs:7
InterfaceDepartment
A single role of objects that make up a chain. A typical trait implementation must have `handle` and `next` methods, while `execute` is implemented by
behavioral/chain-of-responsibility/department.rs:17
InterfaceDeserializer
`Deserializer` trait defines methods that can parse either a string or a vector, it accepts a visitor which knows how to construct a new object of a d
behavioral/visitor/main.rs:29
InterfaceDevice
structural/bridge/device/mod.rs:7
InterfaceDialog
Dialog has a factory method `create_button`. It creates different buttons depending on a factory implementation.
creational/factory-method/render-dialog/gui.rs:9
ClassDirector
Director knows how to build a car. However, a builder can build a car manual instead of an actual car, everything depends on the concrete builder.
creational/builder/director.rs:10
ClassDoctor
behavioral/chain-of-responsibility/department/doctor.rs:3
ClassEditor
behavioral/observer/editor.rs:6
ClassEngine
creational/builder/components.rs:16
EnumEvent
behavioral/observer/observer.rs:5
ClassFile
structural/composite/fs/file.rs:3
ClassFolder
structural/composite/fs/folder.rs:3
ClassForest
structural/flyweight/forest.rs:22
ClassFreightTrain
behavioral/mediator/mediator-rc-refcell/trains/freight_train.rs:6
ClassFreightTrain
behavioral/mediator/mediator-top-down/trains/freight_train.rs:4
ClassGpsNavigator
creational/builder/components.rs:60
InterfaceGuiFactory
Abstract Factory defined using generics.
creational/abstract-factory/gui/lib.rs:10
InterfaceGuiFactoryDynamic
Abstract Factory defined using Box pointer.
creational/abstract-factory/gui/lib.rs:19
InterfaceHasMutableDevice
structural/bridge/remotes/mod.rs:9
ClassHtmlButton
creational/factory-method/render-dialog/html_gui.rs:3
ClassHtmlDialog
creational/factory-method/render-dialog/html_gui.rs:16
ClassIdButton
creational/simple-factory/button/id.rs:3
ClassLedger
structural/facade/ledger.rs:1
EnumLevel
creational/singleton/logger/log.rs:19
InterfaceLog
creational/singleton/logger/log.rs:25
ClassMacButton
creational/abstract-factory/macos-gui/button.rs:3
ClassMacCheckbox
creational/abstract-factory/macos-gui/checkbox.rs:3
ClassMacFactory
creational/abstract-factory/macos-gui/factory.rs:5
ClassMagicMaze
creational/factory-method/maze-game/magic_maze.rs:20
ClassMagicRoom
creational/factory-method/maze-game/magic_maze.rs:4
ClassManual
creational/builder/cars/manual.rs:3
InterfaceMazeGame
Maze game has a factory method producing different rooms.
creational/factory-method/maze-game/game.rs:7
InterfaceMediator
behavioral/mediator/mediator-rc-refcell/train_station.rs:9
InterfaceMediator
Mediator has notification methods.
behavioral/mediator/mediator-top-down/train_station.rs:6
ClassMedical
behavioral/chain-of-responsibility/department/medical.rs:3
InterfaceMemento
behavioral/memento/conceptual.rs:1
ClassNavigator
behavioral/strategy/conceptual.rs:25
ClassNavigator
behavioral/strategy/functional.rs:14
ClassNginxServer
NGINX server is a proxy to an application server.
structural/proxy/server/nginx.rs:6
ClassNotification
structural/facade/notification.rs:1
ClassOrdinaryMaze
creational/factory-method/maze-game/ordinary_maze.rs:20
ClassOrdinaryRoom
creational/factory-method/maze-game/ordinary_maze.rs:4
ClassOrdinaryTarget
structural/adapter/target.rs:5
ClassOriginator
behavioral/memento/serde.rs:7
ClassOriginator
behavioral/memento/conceptual.rs:6
ClassOriginatorBackup
behavioral/memento/conceptual.rs:18
ClassPassengerTrain
behavioral/mediator/mediator-rc-refcell/trains/passenger_train.rs:6
ClassPassengerTrain
behavioral/mediator/mediator-top-down/trains/passenger_train.rs:4
ClassPasteCommand
behavioral/command/command/paste.rs:7
ClassPatient
behavioral/chain-of-responsibility/patient.rs:2
ClassPausedState
behavioral/state/state.rs:6
ClassPlayer
A music player holds a playlist and it can do basic operations over it.
behavioral/state/player.rs:19
ClassPlayerApplication
Application context: a music player and a state.
behavioral/state/main.rs:14
ClassPlayingState
behavioral/state/state.rs:7
ClassPublicTransportStrategy
behavioral/strategy/conceptual.rs:14
ClassPublisher
behavioral/observer/observer.rs:15
ClassRadio
structural/bridge/device/radio.rs:4
ClassReception
behavioral/chain-of-responsibility/department/reception.rs:4
InterfaceRemote
structural/bridge/remotes/mod.rs:13
InterfaceRoom
Maze room that is going to be instantiated with a factory method.
creational/factory-method/maze-game/game.rs:2
InterfaceRouteStrategy
Defines an injectable strategy for building routes.
behavioral/strategy/conceptual.rs:2
ClassSecurityCode
structural/facade/security_code.rs:1
InterfaceServer
structural/proxy/server.rs:6
ClassSetLoggerError
creational/singleton/logger/log.rs:8
ClassSimpleLogger
creational/singleton/logger/simple_logger.rs:3
ClassSpecificTarget
structural/adapter/adaptee.rs:1
InterfaceState
There is a base `State` trait with methods `play` and `stop` which make state transitions. There are also `next` and `prev` methods in a separate `imp
behavioral/state/state.rs:22
ClassStationManager
behavioral/mediator/mediator-rc-refcell/train_station.rs:15
ClassStoppedState
behavioral/state/state.rs:5
ClassStringDeserializer
behavioral/visitor/main.rs:39
InterfaceTarget
structural/adapter/target.rs:1
ClassTargetAdapter
Converts adaptee's specific interface to a compatible `Target` output.
structural/adapter/adapter.rs:4
InterfaceTemplateMethod
behavioral/template-method/main.rs:1
ClassTitleButton
creational/simple-factory/button/title.rs:3
ClassTrack
A music track.
behavioral/state/player.rs:2
InterfaceTrain
behavioral/mediator/mediator-rc-refcell/trains/mod.rs:7
InterfaceTrain
A train gets a mediator object by reference.
behavioral/mediator/mediator-top-down/trains/mod.rs:10
ClassTrainStation
behavioral/mediator/mediator-top-down/train_station.rs:12
EnumTransmission
creational/builder/components.rs:9
next →1–100 of 119, ranked by callers