aliri_braid_examples 0.3.1

Examples demonstrating usage of the `aliri_braid` crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! An example of constructing a basic ref-only strongly-typed wrapper around
//! a string slice.
//!
//! The types in this module do not perform any validation or normalization
//! of their values, so every valid UTF-8 string is potentially valid for
//! these types.

use aliri_braid::braid_ref;

/// A basic example of a wrapper around a [`str`]
#[braid_ref(serde, no_std)]
pub struct Element;