Trait il2_iltags::tags::serialization::StringDeserializer [−][src]
pub trait StringDeserializer {
fn deserialize_string(&mut self, size: usize) -> Result<String>;
}
Expand description
This trait adds the ability to deserialize UTF-8 strings.
Since 1.2.0.
Required methods
fn deserialize_string(&mut self, size: usize) -> Result<String>
fn deserialize_string(&mut self, size: usize) -> Result<String>
Deserializes an UTF-8 String with a given size.
Arguments:
size
: Number of bytes to read.
Returns:
- Ok(v): For success;
- Err(_): For failure;