Skip to main content

CharExt

Trait CharExt 

Source
pub trait CharExt {
    // Required method
    fn to_utf8(self) -> Seq<u8>;
}
Expand description

Extra methods for char

Required Methods§

Source

fn to_utf8(self) -> Seq<u8>

logic

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CharExt for char

Source§

fn to_utf8(self) -> Seq<u8>

logic(opaque)

ensures

1 <= result.len() && result.len() <= 4

Implementors§