buf-ref-reader 0.3.0

Faster, growable buffering reader for when there's little to no need to modify data, nor to keep it alive past next read.
Documentation
Build #145220 2019-02-26 14:39:52
# rustc version
rustc 1.34.0-nightly (f66e4697a 2019-02-20)# docs.rs version
cratesfyi 0.6.0 (d993b18 2019-02-21)# build log
Updating crates.io index
Downloading crates ...
Downloaded buf-ref-reader v0.3.0
Downloading crates ...
Downloaded copy_in_place v0.2.0
Compiling libc v0.2.49
Fresh quick-error v1.2.2
Checking copy_in_place v0.2.0
Fresh memchr v2.2.0
Running `rustc --crate-name copy_in_place /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/copy_in_place-0.2.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=f4d36a98440f2248 -C extra-filename=-f4d36a98440f2248 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="use_std"' -C metadata=74a402ec68ef44b3 -C extra-filename=-74a402ec68ef44b3 --out-dir /home/cratesfyi/cratesfyi/debug/build/libc-74a402ec68ef44b3 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Running `/home/cratesfyi/cratesfyi/debug/build/libc-74a402ec68ef44b3/build-script-build`
Running `rustc --crate-name libc /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="use_std"' -C metadata=8878cd88a3e7f28a -C extra-filename=-8878cd88a3e7f28a --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN`
Checking slice-deque v0.1.16
Running `rustc --crate-name slice_deque /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/slice-deque-0.1.16/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="libc"' --cfg 'feature="mach"' --cfg 'feature="use_std"' -C metadata=46a440ee226c164a -C extra-filename=-46a440ee226c164a --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-8878cd88a3e7f28a.rmeta --cap-lints allow`
Documenting buf-ref-reader v0.3.0
Running `rustdoc --edition=2018 --crate-name buf_ref_reader /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/lib.rs --cap-lints allow --color never -o /home/cratesfyi/cratesfyi/doc -Z unstable-options --resource-suffix -20190220-1.34.0-nightly-f66e4697a --static-root-path / --disable-per-crate-search --extern-html-root-url 'bencher=https://docs.rs/bencher/0.1.5' --extern-html-root-url 'fnv=https://docs.rs/fnv/1.0.6' --extern-html-root-url 'memchr=https://docs.rs/memchr/2.2.0' --extern-html-root-url 'quick_error=https://docs.rs/quick-error/1.2.2' --extern-html-root-url 'slice_deque=https://docs.rs/slice-deque/0.1.16' --extern-html-root-url 'copy_in_place=https://docs.rs/copy_in_place/0.2.0' -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern copy_in_place=/home/cratesfyi/cratesfyi/debug/deps/libcopy_in_place-f4d36a98440f2248.rmeta --extern memchr=/home/cratesfyi/cratesfyi/debug/deps/libmemchr-0c327f95ce852adb.rmeta --extern quick_error=/home/cratesfyi/cratesfyi/debug/deps/libquick_error-139c38d542ab8275.rmeta --extern slice_deque=/home/cratesfyi/cratesfyi/debug/deps/libslice_deque-46a440ee226c164a.rmeta`
warning: could not parse code block as Rust code
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/buffer/mod.rs:53:2
|
53 |       Part of the buffer next to the [`filled()`](#tymethod.filled) that can be used to append data.
|  _____^
54 | |
55 | |     Use [`grow()`](#tymethod.grow) to actually append data written to this slice.
| |_________________________________________________________________________________^
|
= note: error from rustc: unknown start of token: `

warning: could not parse code block as Rust code
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/buffer/mod.rs:62:2
|
62 |       Split [`filled()`](#tymethod.filled) part of the buffer,
|  _____^
63 | |     returning up to `amount` bytes from the beginning while also marking them as discarded
64 | |     right after lifetime of returned slice ends (i.e. before another call to any of `Buffer`'s methods that accepts `&mut self`).
| |_________________________________________________________________________________________________________________________________^
|
= note: error from rustc: unknown start of token: `

warning: could not parse code block as Rust code
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/buffer/mod.rs:73:2
|
73 |       Size of [`filled()`](#tymethod.filled) part of the buffer
|  _____^
74 | |
75 | |     This is generally faster (and a bit more readable) than equivalent call to `.filled().len()`.
| |_________________________________________________________________________________________________^
|
= note: error from rustc: unknown start of token: `

warning: could not parse code block as Rust code
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/lib.rs:173:2
|
173 |       Returns requested amount of bytes, or less if EOF prevents reader from fulfilling the request.
|  _____^
174 | |
175 | |     Returns:
176 | |
177 | |     - `Ok(Some(data))` with, well, data,
178 | |     - `Ok(None)` if no more data is available,
179 | |     - `Err(err)`: see `std::io::Read::read()`
| |_____________________________________________^
|
= note: error from rustc: unknown start of token: `

warning: could not parse code block as Rust code
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/buf-ref-reader-0.3.0/src/lib.rs:199:2
|
199 |       Returns bytes up until and including `delim`, or until EOF mark. If no content is available, returns `None`.
|  _____^
200 | |
201 | |     Returns:
202 | |
203 | |     - `Ok(Some(data))` with, well, data,
204 | |     - `Ok(None)` if no more data is available,
205 | |     - `Err(err)`: see `std::io::Read::read()`
| |_____________________________________________^
|
= note: error from rustc: unknown start of token: `

Finished dev [unoptimized + debuginfo] target(s) in 6.32s