pub fn encode(input: &[char]) -> Option<String> {
    let mut buf = String::with_capacity(input.len());
    encode_into(input.iter().copied(), &mut buf)
        .ok()
        .map(|()| buf)
}
/// Convert Unicode to Punycode.
///
/// Return None on overflow, which can only happen on inputs that would take more than
/// 63 encoded bytes, the DNS limit on domain name labels.
Convert Unicode to Punycode.
Return None on overflow, which can only happen on inputs that would take more than
63 encoded bytes, the DNS limit on domain name labels.
Convert Unicode to Punycode . Return None on overflow which can only happen on inputs that would take more than 63 encoded bytes the DNS limit on domain name labels .
pub fn encode(input: &[char]) -> Option<String> {
    let mut buf = String::with_capacity(input.len());
    encode_into(input.iter().copied(), &mut buf)
        .ok()
        .map(|()| buf)
}
pub fn encode ( input : & [ char ] ) -> Option < String > { let mut buf = String :: with_capacity ( input . len ( ) ) ; encode_into ( input . iter ( ) . copied ( ) , & mut buf ) . ok ( ) . map ( | ( ) | buf ) }
Convert Unicode to Punycode.
Convert Unicode to Punycode .
input
&[char]
input
&[char]