# lpxxn/rust-design-pattern

rust design patterns

Repository: https://github.com/lpxxn/rust-design-pattern
Canonical: https://ross.abutalabs.com/products/rust-design-pattern
Language: Rust
License: MPL-2.0
License Family: copyleft
Topics: rust, design-patterns, pattern, rust-design-patterns, awsome-rust
Last push: 2021-07-15T09:03:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2380, "days_push": 1875, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1437, forks 109 (observed 2026-08-28T04:04:43.705391+00:00)

## What it is
A collection of classic GoF design pattern implementations in Rust, covering creational, behavioral, and structural patterns with example source files. It serves as a reference for learning how to express traditional object-oriented patterns idiomatically in Rust.

## Use cases
- learn design patterns in rust
- see how to implement singleton in rust
- rust examples of factory and builder patterns
- study behavioral patterns like observer and strategy in rust
- reference for adapting oop patterns to rust
- prepare for rust interviews on design patterns

## When to choose
- you are learning Rust and already know classic design patterns
- you want concise, runnable examples of each pattern
- you need a quick reference for idiomatic Rust implementations of GoF patterns

## When to avoid
- you need a production library providing pattern abstractions
- you want comprehensive coverage beyond the ~13 patterns included
- you need actively maintained or documented tutorials with explanations

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: programming-languages, tutorials, developer-tools
- platform: rust, cross-platform
- tags: design-patterns, rust, educational, code-examples, oop-patterns

## Member repositories
- lpxxn/rust-design-pattern (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.705391+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:44.476182+00:00, confidence not recorded.
  - readme: https://github.com/lpxxn/rust-design-pattern (fetched 2026-08-28T04:04:43.705391+00:00, sha a847983dbe72)
- Data as of 2026-08-30T08:39:29.467469+00:00.
