Crate aliri_braid_examples

Source
Expand description

Examples showing the output of using aliri_braid to generate strongly-typed wrappers around string values.

Three types of braids are demonstrated:

In addition, the minimal module demonstrates the minimal string implementation that can be wrapped inside a braid type.

Modulesยง

bytes
An example of constructing a basic strongly-typed wrapper around a Bytes-backed value.
minimal
An example of constructing a basic strongly-typed wrapper around a custom string-like type.
normalized
An example of constructing a strongly-typed wrapper around a normalized string value.
ref_only
An example of constructing a basic ref-only strongly-typed wrapper around a string slice.
sso_wrapper
An example of constructing a strongly-typed wrapper around a string with small-string optimization.
validated
An example of constructing a strongly-typed wrapper around a validated string value.
wrapper
An example of constructing a basic strongly-typed wrapper around a string value.