safe_uri 0.1.0-beta.4

Simple and safe URI types.
Documentation
1
2
3
4
5
6
7
8
9
mod generated_validate;

use crate::validation::{is_sub_delimiter, is_unreserved};

pub(crate) use self::generated_validate::validate;

pub(crate) const fn is_valid_byte(b: u8) -> bool {
    is_unreserved(b) || is_sub_delimiter(b) || matches!(b, b':' | b'@' | b'/' | b'?')
}