pub trait TextIn {
type Error;
// Required method
fn read_text<'a>(
&mut self,
buf: &'a mut [u8],
) -> Result<&'a str, Self::Error> โ;
}Expand description
๐ ๐ Reads UTF-8 text from an input surface into caller-provided storage.
๐ sys/io
This is the text-layer counterpart to IoRead.
It is intended for sources whose primary semantic payload is text,
while keeping storage explicit and allocation optional.
See also IoRead for byte-oriented input.
Required Associated Typesยง
Required Methodsยง
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".