Trait il2_iltags::io::data::StringValueReader [−][src]
pub trait StringValueReader {
fn read_string(&mut self, size: usize) -> Result<String>;
}
Expand description
This trait adds the ability to read UTF-8 String values.
Required methods
fn read_string(&mut self, size: usize) -> Result<String>
fn read_string(&mut self, size: usize) -> Result<String>
Reads an UTF-8 String with a given size.
Arguments:
size
: Number of bytes to read.
Returns:
- Ok(v): For success;
- Err(_): For failure;