buffer-redux 1.1.0

Drop-in replacements for buffered I/O in `std::io` with extra features.
Documentation
Build #2632033 2025-11-03 13:32:53
# rustc version
rustc 1.93.0-nightly (b15a874aa 2025-11-02)# docs.rs version
docsrs 0.6.0 (eafb2859 2025-10-29)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/buffer-redux-1.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/buffer-redux-1.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20251102-1.93.0-nightly-b15a874aa\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 07440d2ad96585bd767a479e854efa07955109808302ecbdf7a0378ef2fa9980
[INFO] running `Command { std: "docker" "start" "-a" "07440d2ad96585bd767a479e854efa07955109808302ecbdf7a0378ef2fa9980", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting buffer-redux v1.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `::BufReader`
[INFO] [stderr]   --> src/policy.rs:67:32
[INFO] [stderr]    |
[INFO] [stderr] 67 | /// A policy for [`BufReader`](::BufReader) which ensures there is at least the given number of
[INFO] [stderr]    |                                ^^^^^^^^^^^ no item named `` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `::Buffer::make_room`
[INFO] [stderr]    --> src/policy.rs:203:50
[INFO] [stderr]     |
[INFO] [stderr] 203 |     /// Otherwise, calls [`Buffer::make_room()`](::Buffer::make_room)
[INFO] [stderr]     |                                                  ^^^^^^^^^^^^^^^^^^^ no item named `` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]   --> src/lib.rs:67:39
[INFO] [stderr]    |
[INFO] [stderr] 67 | //! as their buffer types ([`Buffer`](Buffer) is included as well since it is used internally
[INFO] [stderr]    |                             --------  ^^^^^^ explicit target is redundant
[INFO] [stderr]    |                             |
[INFO] [stderr]    |                             because label contains path that resolves to same destination
[INFO] [stderr]    |
[INFO] [stderr]    = note: when a link's destination is not specified,
[INFO] [stderr]            the label is used to resolve intra-doc links
[INFO] [stderr]    = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]    |
[INFO] [stderr] 67 - //! as their buffer types ([`Buffer`](Buffer) is included as well since it is used internally
[INFO] [stderr] 67 + //! as their buffer types ([`Buffer`] is included as well since it is used internally
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]   --> src/lib.rs:99:79
[INFO] [stderr]    |
[INFO] [stderr] 99 | //! as the `.make_room()` methods, and is utilized by [`policy::MinBuffered`](policy::MinBuffered)
[INFO] [stderr]    |                                                        ---------------------  ^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        because label contains path that resolves to same destination
[INFO] [stderr]    |
[INFO] [stderr]    = note: when a link's destination is not specified,
[INFO] [stderr]            the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]    |
[INFO] [stderr] 99 - //! as the `.make_room()` methods, and is utilized by [`policy::MinBuffered`](policy::MinBuffered)
[INFO] [stderr] 99 + //! as the `.make_room()` methods, and is utilized by [`policy::MinBuffered`]
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:100:32
[INFO] [stderr]     |
[INFO] [stderr] 100 | //! and [`policy::FlushExact`](policy::FlushExact).
[INFO] [stderr]     |          --------------------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |          |
[INFO] [stderr]     |          because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 100 - //! and [`policy::FlushExact`](policy::FlushExact).
[INFO] [stderr] 100 + //! and [`policy::FlushExact`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:186:59
[INFO] [stderr]     |
[INFO] [stderr] 186 |     /// default capacity and the default [`ReaderPolicy`](policy::ReaderPolicy).
[INFO] [stderr]     |                                           --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                           |
[INFO] [stderr]     |                                           because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 186 -     /// default capacity and the default [`ReaderPolicy`](policy::ReaderPolicy).
[INFO] [stderr] 186 +     /// default capacity and the default [`ReaderPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:192:68
[INFO] [stderr]     |
[INFO] [stderr] 192 |     /// of *at least* `cap` bytes and the default [`ReaderPolicy`](policy::ReaderPolicy).
[INFO] [stderr]     |                                                    --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                                    |
[INFO] [stderr]     |                                                    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 192 -     /// of *at least* `cap` bytes and the default [`ReaderPolicy`](policy::ReaderPolicy).
[INFO] [stderr] 192 +     /// of *at least* `cap` bytes and the default [`ReaderPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:258:45
[INFO] [stderr]     |
[INFO] [stderr] 258 |     /// Mutate the current [`ReaderPolicy`](policy::ReaderPolicy) in-place.
[INFO] [stderr]     |                             --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                             |
[INFO] [stderr]     |                             because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 258 -     /// Mutate the current [`ReaderPolicy`](policy::ReaderPolicy) in-place.
[INFO] [stderr] 258 +     /// Mutate the current [`ReaderPolicy`] in-place.
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:496:26
[INFO] [stderr]     |
[INFO] [stderr] 496 |     /// [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |          --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |          |
[INFO] [stderr]     |          because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 496 -     /// [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 496 +     /// [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:502:68
[INFO] [stderr]     |
[INFO] [stderr] 502 |     /// of *at least* `cap` bytes and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |                                                    --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                                    |
[INFO] [stderr]     |                                                    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 502 -     /// of *at least* `cap` bytes and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 502 +     /// of *at least* `cap` bytes and the default [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:511:39
[INFO] [stderr]     |
[INFO] [stderr] 511 |     /// capacity and [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |                       --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                       |
[INFO] [stderr]     |                       because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 511 -     /// capacity and [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 511 +     /// capacity and [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:528:51
[INFO] [stderr]     |
[INFO] [stderr] 528 |     /// capacity and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |                                   --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                   |
[INFO] [stderr]     |                                   because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 528 -     /// capacity and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 528 +     /// capacity and the default [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:544:86
[INFO] [stderr]     |
[INFO] [stderr] 544 |     /// Create a new `BufWriter` wrapping `inner`, utilizing the existing [`Buffer`](Buffer)
[INFO] [stderr]     |                                                                            --------  ^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                                                            |
[INFO] [stderr]     |                                                                            because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 544 -     /// Create a new `BufWriter` wrapping `inner`, utilizing the existing [`Buffer`](Buffer)
[INFO] [stderr] 544 +     /// Create a new `BufWriter` wrapping `inner`, utilizing the existing [`Buffer`]
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:545:51
[INFO] [stderr]     |
[INFO] [stderr] 545 |     /// instance and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |                                   --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                   |
[INFO] [stderr]     |                                   because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 545 -     /// instance and the default [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 545 +     /// instance and the default [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:561:36
[INFO] [stderr]     |
[INFO] [stderr] 561 |     /// Set a new [`WriterPolicy`](policy::WriterPolicy), returning the transformed type.
[INFO] [stderr]     |                    --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                    |
[INFO] [stderr]     |                    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 561 -     /// Set a new [`WriterPolicy`](policy::WriterPolicy), returning the transformed type.
[INFO] [stderr] 561 +     /// Set a new [`WriterPolicy`], returning the transformed type.
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:574:45
[INFO] [stderr]     |
[INFO] [stderr] 574 |     /// Mutate the current [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr]     |                             --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                             |
[INFO] [stderr]     |                             because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 574 -     /// Mutate the current [`WriterPolicy`](policy::WriterPolicy).
[INFO] [stderr] 574 +     /// Mutate the current [`WriterPolicy`].
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:734:19
[INFO] [stderr]     |
[INFO] [stderr] 734 | /// [`BufWriter`](BufWriter)`<W, `[`policy::FlushOnNewline`](policy::FlushOnNewline)`>`, which
[INFO] [stderr]     |      -----------  ^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |      |
[INFO] [stderr]     |      because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 734 - /// [`BufWriter`](BufWriter)`<W, `[`policy::FlushOnNewline`](policy::FlushOnNewline)`>`, which
[INFO] [stderr] 734 + /// [`BufWriter`]`<W, `[`policy::FlushOnNewline`](policy::FlushOnNewline)`>`, which
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:734:62
[INFO] [stderr]     |
[INFO] [stderr] 734 | /// [`BufWriter`](BufWriter)`<W, `[`policy::FlushOnNewline`](policy::FlushOnNewline)`>`, which
[INFO] [stderr]     |                                    ------------------------  ^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                    |
[INFO] [stderr]     |                                    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 734 - /// [`BufWriter`](BufWriter)`<W, `[`policy::FlushOnNewline`](policy::FlushOnNewline)`>`, which
[INFO] [stderr] 734 + /// [`BufWriter`](BufWriter)`<W, `[`policy::FlushOnNewline`]`>`, which
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:735:55
[INFO] [stderr]     |
[INFO] [stderr] 735 | /// demonstrates the power of custom [`WriterPolicy`](policy::WriterPolicy) implementations.
[INFO] [stderr]     |                                       --------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                       |
[INFO] [stderr]     |                                       because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 735 - /// demonstrates the power of custom [`WriterPolicy`](policy::WriterPolicy) implementations.
[INFO] [stderr] 735 + /// demonstrates the power of custom [`WriterPolicy`] implementations.
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/lib.rs:718:37
[INFO] [stderr]     |
[INFO] [stderr] 718 | /// set by [`set_drop_err_handler`](set_drop_err_handler) for this thread.
[INFO] [stderr]     |             ----------------------  ^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |             |
[INFO] [stderr]     |             because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 718 - /// set by [`set_drop_err_handler`](set_drop_err_handler) for this thread.
[INFO] [stderr] 718 + /// set by [`set_drop_err_handler`] for this thread.
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: `buffer-redux` (lib doc) generated 20 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/buffer_redux/index.html
[INFO] running `Command { std: "docker" "inspect" "07440d2ad96585bd767a479e854efa07955109808302ecbdf7a0378ef2fa9980", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "07440d2ad96585bd767a479e854efa07955109808302ecbdf7a0378ef2fa9980", kill_on_drop: false }`
[INFO] [stdout] 07440d2ad96585bd767a479e854efa07955109808302ecbdf7a0378ef2fa9980