We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TryFrom<[(K, V); N]> for ArrayMap<K, V, M>
ArrayMapFacade could implement this:
ArrayMapFacade
impl<K, V, R, B, const N: usize> TryFrom<[(K, V); N]> for ArrayMapFacade<K, V, R, B> where K: Eq + Hash, R: RawTable<(K, V)> + Default, B: BuildHasher + Default, { type Error = CapacityError; fn try_from(value: [(K, V); N]) -> Result<Self, Self::Error> { let mut result = Self::with_build_hasher(B::default()); for (key, value) in value { result.insert(key, value)?; } Ok(result) } }
but it conflicts with the "specialized" implementation for FixedSizeTables:
FixedSizeTable
array-map/src/array_map.rs
Lines 1064 to 1081 in 4390c72
The text was updated successfully, but these errors were encountered:
From<[(K, V); N]> for ArrayMap<K, V, N>
No branches or pull requests
ArrayMapFacade
could implement this:but it conflicts with the "specialized" implementation for
FixedSizeTable
s:array-map/src/array_map.rs
Lines 1064 to 1081 in 4390c72
The text was updated successfully, but these errors were encountered: