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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Hyphens
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Hyphens
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Hyphens
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Hyphens
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Hyphens
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Hyphens
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Hyphens
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Hyphens
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>