You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to use a HashProxy<String, DefaultHasher, BinaryFuse8> is impossible in the current state due to HashProxy::from failing. You can reproduce by replacing Xor8 with BinaryFuse8 in the example.
Output from cargo:
error[E0277]: the trait bound `xorf::BinaryFuse8: std::convert::From<std::vec::Vec<u64>>` is not satisfied
--> src\lib.rs:59:84
|
59 | let pw_filter: HashProxy<String, DefaultHasher, BinaryFuse8> = HashProxy::from(&passwords);
| --------------- ^^^^^^^^^^ the trait `std::convert::From<std::vec::Vec<u64>>` is not implemented for `xorf::BinaryFuse8`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `std::convert::From<T>`:
<xorf::HashProxy<T, H, F> as std::convert::From<&[T]>>
<xorf::HashProxy<T, H, F> as std::convert::From<&std::vec::Vec<T>>>
= note: required for `xorf::HashProxy<std::string::String, std::collections::hash_map::DefaultHasher, xorf::BinaryFuse8>` to implement `std::convert::From<&std::vec::Vec<std::string::String>>`
The text was updated successfully, but these errors were encountered:
I do believe it would, yes! For reference, I learned more and have since moved away from HashProxy for my use case, however, this would still be good for newcomers.
Attempting to use a
HashProxy<String, DefaultHasher, BinaryFuse8>
is impossible in the current state due toHashProxy::from
failing. You can reproduce by replacingXor8
withBinaryFuse8
in the example.Output from cargo:
The text was updated successfully, but these errors were encountered: