strid_examples/
lib.rs

1//! Examples showing the output of using [`strid`] to
2//! generate strongly-typed wrappers around string values.
3//!
4//! Three types of braids are demonstrated:
5//! * [Wrapper][wrapper]
6//!   * A wrapper around a string with [small-string optimizations][sso_wrapper]
7//!   * A wrapper around a string [backed by `Bytes`][bytes]
8//! * [Validated][validated]
9//! * [Normalized][normalized]
10//!
11//! In addition, the [`minimal`] module demonstrates the minimal string
12//! implementation that can be wrapped inside a braid type.
13#![deny(unsafe_code)]
14
15pub mod bytes;
16pub mod minimal;
17pub mod normalized;
18pub mod ref_only;
19pub mod sso_wrapper;
20pub mod validated;
21pub mod wrapper;