byte_length
Module[ByteLength]: strings of bounded byte length.
Contents
use utopia_database::validator::byte_length::ByteLength;Rust
pub struct ByteLengthA string of at most max bytes (0: no limit).
Rust
use utopia_database::validator::byte_length::ByteLength;
use utopia_database::value::string;
assert!(ByteLength::new(3).is_valid(&string("abc")));
assert!(!ByteLength::new(3).is_valid(&string("héé")));