Skip to main content

TryIntoHostPattern

Trait TryIntoHostPattern 

pub trait TryIntoHostPattern: TryIntoHostPatternPriv { }
Available on crate feature net only.
Expand description

Convert owned or borrowed pattern syntax into a HostPattern.

This trait is sealed. It is implemented for HostPattern, DomainPattern, &str, String, and Box<str>, but deliberately not for Host or Domain: callers must choose exact or subtree semantics.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl TryIntoHostPattern for &str

Implementors§