Crate vds

Source
Expand description

§vds

A #![no_std] crate for visibly distinguishable strings and codes.

This crate provides:

  • VDChar: a compact, index-based character type
  • VDString: a validated string of VDChars
  • VDGenerator: a builder for random string generation (requires generate feature)

§Features

  • generate — enables VDGenerator for random string creation (uses rand_core)
  • serde — enables Serialize / Deserialize support via the serde crate

Structs§

VDChar
A single visibly distinguishable character from a restricted set.
VDGenerator
A builder-style configuration for generating random VDStrings.
VDString
A validated, immutable string composed entirely of VDChars.

Enums§

VDGeneratorError
Error returned when VDGenerator::generate is called with an invalid configuration.
VDStringError
Error returned when constructing or parsing a VDString.

Constants§

VDS_ALLOWED
Allowed characters for VDChar.