Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_format
  5. canonicalize_domain_cow

canonicalize_domain_cow

Function canonicalize_domain_cow 

Source
pub fn canonicalize_domain_cow(domain: &str) -> Cow<'_, str>
Expand description

Canonicalizes a domain string by stripping whitespace, returning a borrowed slice if it contains no whitespace characters.