collect_failable 0.18.0

A trait for collecting values into a container which has an invariant to uphold and whose construction may fail
Documentation
��cargo :    Compiling collect_failable v0.17.1 (C:\Users\maxma\source\repos\Rust\collect_failable)

At line:1 char:1

+ cargo test -- errors::capacity_error::bounds --nocapture > test_outpu ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (   Compiling co...llect_failable):String) [], RemoteException

    + FullyQualifiedErrorId : NativeCommandError

 

warning: missing documentation for a module

 --> src\errors\mod.rs:3:1

  |

3 | pub mod cap;

  | ^^^^^^^^^^^

  |

note: the lint level is defined here

 --> src\lib.rs:3:9

  |

3 | #![warn(missing_docs, missing_debug_implementations)]

  |         ^^^^^^^^^^^^



warning: `collect_failable` (lib) generated 1 warning

warning: `collect_failable` (lib test) generated 1 warning (1 duplicate)

    Finished `test` profile [unoptimized + debuginfo] target(s) in 3.27s

     Running unittests src\lib.rs (target\debug\deps\collect_failable-450ce836f87a4f79.exe)



running 0 tests



test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 7 filtered out; finished in 0.00s



     Running tests\errors\main.rs (target\debug\deps\errors-e26c125afb98d9d7.exe)



running 0 tests



test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 85 filtered out; finished in 0.00s



     Running tests\impl\main.rs (target\debug\deps\impl-9348b0add3d6e13a.exe)



running 0 tests



test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 145 filtered out; finished in 0.00s



     Running tests\try_collect_ex.rs (target\debug\deps\try_collect_ex-e6e0e1a761d3899b.exe)



running 0 tests



test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s



   Doc-tests collect_failable

error[E0432]: unresolved import `crate::errors::CapacityErrorKind`

 --> src\errors\cap\collect.rs:9:5

  |

9 | use crate::errors::CapacityErrorKind;

  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `CapacityErrorKind` in `errors`

  |

help: consider importing one of these enums instead

  |

9 | use crate::errors::cap::CapacityErrorKind;

  |                    +++++

9 - use crate::errors::CapacityErrorKind;

9 + use collect_failable::errors::cap::CapacityErrorKind;

  |



error[E0432]: unresolved import `crate::errors::CapacityErrorKind`

  --> src\errors\collect_error.rs:14:5

   |

14 | use crate::errors::CapacityErrorKind;

   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `CapacityErrorKind` in `errors`

   |

help: consider importing one of these enums instead

   |

14 | use crate::errors::cap::CapacityErrorKind;

   |                    +++++

14 - use crate::errors::CapacityErrorKind;

14 + use collect_failable::errors::cap::CapacityErrorKind;

   |



error: aborting due to 2 previous errors



For more information about this error, try `rustc --explain E0432`.

error: doctest failed, to rerun pass `--doc`



Caused by:

  process didn't exit successfully: `C:\Users\maxma\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustdoc.exe 

--edition=2024 --crate-type lib --color auto --crate-name collect_failable --test src\lib.rs --test-run-directory 

C:\Users\maxma\source\repos\Rust\collect_failable -L 

dependency=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps -L 

dependency=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps -L "native=C:\Program Files\Microsoft 

Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64" -L 

native=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\build\alloca-aaa7197e8285fe42\out --test-args 

errors::capacity_error::bounds --test-args --nocapture --extern 

arrayvec=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libarrayvec-d421276a685c7e32.rlib 

--extern assert_unordered=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libassert_unordered-a9919

92eb10fa8ef.rlib --extern collect_failable=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libcolle

ct_failable-42d3c63d86196481.rlib --extern collect_failable=C:\Users\maxma\source\repos\Rust\collect_failable\target\de

bug\deps\libcollect_failable-42d3c63d86196481.rlib --extern 

criterion=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libcriterion-1a26b80ece51e9d2.rlib 

--extern 

derive_more=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libderive_more-379f1c69bee0ee0d.rlib 

--extern display_as_debug=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libdisplay_as_debug-adebd

84f625e0e35.rlib --extern 

dropcount=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libdropcount-f9e8446dbfbf397e.rlib 

--extern either=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libeither-e359cd4372ea90fc.rlib 

--extern fluent_result=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libfluent_result-098c26329c2

b339d.rlib --extern 

hashbrown=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libhashbrown-0be45c82ef4d2fe4.rlib 

--extern 

indexmap=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libindexmap-a3dc10dc89f10969.rlib 

--extern no_drop=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libno_drop-cf99afd9e7841a47.rlib 

--extern sealed=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\sealed-403daaa5ce84367e.dll 

--extern 

size_hinter=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libsize_hinter-75a184dd4989c200.rlib 

--extern subdef=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\subdef-5dfd93463bef1944.dll 

--extern tap=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libtap-580bbf6cfe10f3fe.rlib --extern 

thiserror=C:\Users\maxma\source\repos\Rust\collect_failable\target\debug\deps\libthiserror-8ac6cacbcdefed4b.rlib -C 

embed-bitcode=no --cfg "feature=\"alloc\"" --cfg "feature=\"arrayvec\"" --cfg "feature=\"default\"" --cfg 

"feature=\"hashbrown\"" --cfg "feature=\"indexmap\"" --cfg "feature=\"std\"" --cfg "feature=\"tuple\"" --cfg 

"feature=\"unsafe\"" --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values(\"alloc\", \"arrayvec\", 

\"default\", \"hashbrown\", \"indexmap\", \"std\", \"tuple\", \"unsafe\"))" --error-format human` (exit code: 1)