Enum Hyphens
#[non_exhaustive]
pub enum Hyphens
The CheckHyphens mode.
Variants
-
Allow CheckHyphens=false: Do not place positional restrictions on hyphens.
This mode is used by the WHATWG URL Standard for normal User Agent processing (i.e. not conformance checking).
-
CheckFirstLast Prohibit hyphens in the first and last position in the label but allow in the third and fourth position.
Note that this mode rejects real-world names, including some GitHub user pages.
-
Check CheckHyphens=true: Prohibit hyphens in the first, third, fourth, and last position in the label.
Note that this mode rejects real-world names, including YouTube CDN nodes and some GitHub user pages.
Trait Implementations
impl Clone for Hyphens
fn clone(&self) -> Self
impl Copy for Hyphens
impl Eq for Hyphens
impl PartialEq for Hyphens
fn eq(&self, other: &Self) -> bool