Expand description
Exposes types which conform most directly to the “Gang of Four” and other commonly accepted OOP-style patterns.
Modules§
- abstract_
factory - Provides an abstraction for object creation.
- command
- Contains types which encapsulate a repeatedly callable block of code.
- heap_
pool - Contains types which allow client code to generate, use, and re-use heap-allocated objects efficiently.
- observer
- Contains types which implement the “Observer” pattern, in which a single object is used to delegate notifications to a group of dynamic listening object.
- prelude
- Exposes submodules and their preludes at the library level.
- publisher_
subscriber - This module implements the
Publisher-Subscriber pattern. In this model,
a
Publisher
contains a list ofSubscriber
s. When a message is delivered to thePublisher
, it is then delegated directly to all itsSubscriber
s, one at a time. Typically, implementations are dynamic, in thatSubscriber
s are able to be dded or removed at will by the client code - these features are delineated separately in theDetachablePublisher
andAttachablePublisher
traits, but can be implemented by anyPublisher
, and together as aMutablePublisher
. - state
- This module implements the State pattern.
- transformer_
chain - Provides arbitrarily chained groups of
crate::primitives::transformer::Transformer
s to be setup and used repeatedly.