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

impl StructuralPartialEq for Hyphens

Auto Trait Implementations

impl Freeze for Hyphens

impl RefUnwindSafe for Hyphens

impl Send for Hyphens

impl Sync for Hyphens

impl Unpin for Hyphens

impl UnsafeUnpin for Hyphens

impl UnwindSafe for Hyphens

Blanket Implementations

impl<T> Any for Hyphens where T: 'static + ?Sized,

impl<T> Borrow<T> for Hyphens where T: ?Sized,

impl<T> BorrowMut<T> for Hyphens where T: ?Sized,

impl<T> CloneToUninit for Hyphens where T: Clone,

impl<T> From<T> for Hyphens

impl<T> ToOwned for Hyphens where T: Clone,

impl<T, U> Into<U> for Hyphens where U: From<T>,

impl<T, U> TryFrom<U> for Hyphens where U: Into<T>,

impl<T, U> TryInto<U> for Hyphens where U: TryFrom<T>,