[−][src]Module whiteread::adapters
This module defines adapters for FromStream
trait.
This module contains a few structs, which implement
FromStream
in a special way. Eg. Skip
serves the role
of a placeholder, and Lengthed
allows to read a vector
prepended by its length.
See also implementation of FromStream
for std types
which among implementation for primitives and strings,
contains implementation on tuples, Vec
and Option
.
Structs
Lengthed | Wrapper for reading vector of values represented by a list prepended by a number of elements. |
Skip | Used to consume and ignore one whitespace-separated value |
SkipAll | Used to ignore everything till the end of the reader |
WithCheapError | Hints the parsing function not to render errors |
Zeroed | Wrapper for reading vector of numbers represented by a list ending with 0. |