struct Reader
XuAPI
pub struct Reader {
pub data string
}Purpose
Bzip2 Streaming reader and decoder.
Public fields
datastring- data
#compress/bzip2bzip2 decode (no Writer).
struct Readerpub struct Reader {
pub data string
}Bzip2 Streaming reader and decoder.
data stringnew_readerpub fn new_reader(data string) ReaderConstruct reader.
data stringReader — a value of this type
decodepub fn decode(src string) stringDecode data from encoded representation. Throws on failure; handle the error or propagate it to the caller.
src stringstring — result string
($&Reader) read_allpub fn (r $&Reader) read_all() stringOperation on $&Reader: read all.
r $&ReaderReader instance used by this call (exclusive borrow).string — result string