#[non_exhaustive]pub enum HostPart {
AnyHost,
Named {
wildcard_prefix: bool,
labels: Vec<String>,
trailing_dot: bool,
},
}Expand description
A parsed host-part (CSP3 §2.3.1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Eq for HostPart
impl StructuralPartialEq for HostPart
Auto Trait Implementations§
impl Freeze for HostPart
impl RefUnwindSafe for HostPart
impl Send for HostPart
impl Sync for HostPart
impl Unpin for HostPart
impl UnsafeUnpin for HostPart
impl UnwindSafe for HostPart
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
Mutably borrows from an owned value. Read more