pub struct Decoder<R> {
// some fields omitted
}
A decoder for deserializing bytes in an order preserving format to a value.
Methods
fn new(reader: R) -> Decoder<R>
Creates a new ordered bytes encoder whose output will be written to the provided writer.
Trait Implementations
type Error = Error
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> Result<T> where F: FnOnce(&mut Self) -> Result<T>
fn read_struct<T, F>(&mut self, _name: &str, _len: usize, f: F) -> Result<T> where F: FnOnce(&mut Self) -> Result<T>
fn read_tuple<T, F>(&mut self, _len: usize, f: F) -> Result<T> where F: FnOnce(&mut Self) -> Result<T>
fn read_seq<T, F>(&mut self, _f: F) -> Result<T> where F: FnOnce(&mut Self, usize) -> Result<T>
fn read_map<T, F>(&mut self, _f: F) -> Result<T> where F: FnOnce(&mut Self, usize) -> Result<T>
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).