Skip to main content

TryIntoDomainPattern

Trait TryIntoDomainPattern 

pub trait TryIntoDomainPattern: TryIntoDomainPatternPriv { }
Available on crate feature net only.
Expand description

Convert owned or borrowed pattern syntax into a DomainPattern.

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl TryIntoDomainPattern for &str

Implementors§