Attribute Macro aliri_braid::braid_ref
source · #[braid_ref]
Expand description
Constructs a ref-only braid
Available options:
- either
validator [ = "Type" ]
- Indicates the type is validated. If not specified, it is assumed that the braid implements the relevant trait itself.
debug = "impl|omit"
(defaultimpl
)- Changes how automatic implementations of the
Debug
trait are provided. Ifomit
, then no implementations ofDebug
will be provided.
- Changes how automatic implementations of the
display = "impl|omit"
(defaultimpl
)- Changes how automatic implementations of the
Display
trait are provided. Ifomit
, then no implementations ofDisplay
will be provided.
- Changes how automatic implementations of the
ord = "impl|omit"
(defaultimpl
)- Changes how automatic implementations of the
PartialOrd
andOrd
traits are provided. Ifomit
, then no implementations will be provided.
- Changes how automatic implementations of the
serde = "impl|omit"
(defaultomit
)- Adds serialize and deserialize implementations
no_std
- Generates a
no_std
-compatible braid that doesn’t requirealloc
- Generates a