(&self)
| 129 | |
| 130 | impl AsKeyRef for Key { |
| 131 | fn as_keyref(&self) -> KeyRef<'_> { |
| 132 | match self { |
| 133 | Key::Int(i) => KeyRef::Int(*i), |
| 134 | Key::Uint(u) => KeyRef::Uint(*u), |
| 135 | Key::Bool(b) => KeyRef::Bool(*b), |
| 136 | Key::String(s) => KeyRef::String(s.as_str()), |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | impl<'a> AsKeyRef for KeyRef<'a> { |