Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rust-design-pattern

> 设计协作
Open source

rust design patterns

1.4K stars0 likes1 views
WebsiteGitHub

About

rust design patterns

Rust Design Patterns

## Creational Patterns | Pattern | Description | Status | |:-------:|:----------- |:------:| | [Factory Method](/creational/factory.rs) | Defers instantiation of an object to a specialized function for creating instances | ✔ | | [Abstract Factory](/creational/abstract_factory.rs) | Provides an interface for creating families of releated objects | ✔ | | [Builder](/creational/builder.rs) | Builds a complex object using simple objects | ✔ | | [Singleton](/creational/singleton.rs) | Restricts instantiation of a type to one object | ✔ | ## Behavioral Patterns | Pattern | Description | Status | |:-------:|:----------- |:------:| | [Strategy](/behavioral/strategy.rs) | Enables an algorithm's behavior to be selected at runtime | ✔ | | [State](/behavioral/state.rs) | Encapsulates varying behavior for the same object based on its internal state | ✔ | | [Command](/behavioral/command.rs) | Converts requests or simple operations into objects. | ✔ | | [Iterator](/behavioral/iterator.rs) | Lets you traverse elements of a collection without exposing its underlying representation | ✔ | | [Observer](/behavioral/observer.rs) | Allows one objects to notify other objects about changes in their state. | ✔ | | [Chain of Responsibility](/behavioral/chain_of_responsibility.rs) | Avoids coupling a sender to receiver by giving more than object a chance to handle the request | ✔ | ## Structural Patterns | Pattern | Description | Status | |:-------:|:----------- |:------:| | [Adapter](/structural/adapter.rs) | allows objects with incompatible interfaces to collaborate. | ✔ | | [Decorator](/structural/decorator.rs) | Adds behavior to an object, statically or dynamically | ✔ | | [Proxy](/structural/proxy.rs) | Provides a surrogate for an object to control it's actions | ✔ |

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustawsome-rustdesign-patternspatternrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category设计协作
PricingOpen source

> Related tools

F
Figma
协作式界面设计工具
S
sketch-wakatime
Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
Q
QuickColor
Quickly apply fills from the global or document color palettes to selected elements - 🎨