mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Sized is implied
This commit is contained in:
parent
a6c7eaec1a
commit
89cc00f8cf
|
@ -8,18 +8,14 @@ use rustc_hash::FxHasher;
|
|||
|
||||
type HashType = u32;
|
||||
|
||||
struct Node<K: Sized, V: Sized> {
|
||||
struct Node<K, V> {
|
||||
hash: HashType,
|
||||
distance_to_initial_bucket: u32,
|
||||
key: K,
|
||||
value: V,
|
||||
}
|
||||
|
||||
impl<K, V> Node<K, V>
|
||||
where
|
||||
K: Sized,
|
||||
V: Sized,
|
||||
{
|
||||
impl<K, V> Node<K, V> {
|
||||
fn with_new_key_value(self, new_key: K, new_value: V) -> (Self, V) {
|
||||
(
|
||||
Self {
|
||||
|
|
Loading…
Reference in a new issue