#[non_exhaustive]pub enum Hyphens {
Allow,
CheckFirstLast,
Check,
}
Expand description
The CheckHyphens mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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 Copy for Hyphens
impl Eq for Hyphens
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 UnwindSafe for Hyphens
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Allow
: 0 bytesCheckFirstLast
: 0 bytesCheck
: 0 bytes