is_uuid
Checks whether s is a UUID in its canonical 8-4-4-4-12 hyphenated hexadecimal form.
Case-insensitive. The variant and version digits are not checked, so this accepts any RFC 9562 UUID (v1 through v8) as well as the all-zero nil UUID; it only checks the shape.
Import
Section titled “Import”Cargo feature validate (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
s | &str | The text to check. |
Returns
Section titled “Returns”bool — true when s has the shape of a UUID.
