pub trait StrEncoder: BaseEncoder {
// Required method
fn put_str(&mut self, string: &str) -> Result<(), Self::Error>;
}Expand description
A trait for encoders that can handle UTF-8 encodables.
This trait extends BaseEncoder to include a types and methods
specifically used for handling UTF-8 encodables. Encoders may use this trait
as bounds for generic encodables to signal that the output will be UTF-8
encoded. Doing so allows encoders such as String to be used.