(value: &mut I)
| 22 | |
| 23 | impl Decode for NodeIndex { |
| 24 | fn decode<I: Input>(value: &mut I) -> Result<Self, Error> { |
| 25 | let mut arr = [0u8; 8]; |
| 26 | value.read(&mut arr)?; |
| 27 | let val: u64 = u64::from_le_bytes(arr); |
| 28 | Ok(NodeIndex(val as usize)) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | /// Indicates that an implementor has been assigned some index. |
nothing calls this directly
no test coverage detected