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" (default impl)
    • Changes how automatic implementations of the Debug trait are provided. If omit, then no implementations of Debug will be provided.
  • display = "impl|omit" (default impl)
    • Changes how automatic implementations of the Display trait are provided. If omit, then no implementations of Display will be provided.
  • ord = "impl|omit" (default impl)
    • Changes how automatic implementations of the PartialOrd and Ord traits are provided. If omit, then no implementations will be provided.
  • serde = "impl|omit" (default omit)
    • Adds serialize and deserialize implementations
  • no_std
    • Generates a no_std-compatible braid that doesn’t require alloc