strid_examples/ref_only.rs
1//! An example of constructing a basic ref-only strongly-typed wrapper around
2//! a string slice.
3//!
4//! The types in this module do not perform any validation or normalization
5//! of their values, so every valid UTF-8 string is potentially valid for
6//! these types.
7
8use strid::braid_ref;
9
10/// A basic example of a wrapper around a [`str`]
11#[braid_ref(serde, no_std)]
12pub struct Element(str);