A trait for reading [`FixedInts`] from any other `Reader`.
| 116 | |
| 117 | /// A trait for reading [`FixedInts`] from any other `Reader`. |
| 118 | pub trait FixedIntReader { |
| 119 | /// Read a fixed integer from a reader. How many bytes are read depends on `FI`. |
| 120 | /// |
| 121 | /// On EOF, an [`io::Error`] with [`io::ErrorKind::UnexpectedEof`] is returned. |
| 122 | fn read_fixedint<FI: FixedInt>(&mut self) -> Result<FI>; |
| 123 | } |
| 124 | |
| 125 | /// Like FixedIntReader, but returns a future. |
| 126 | #[cfg(any(feature = "tokio_async", feature = "futures_async"))] |
nothing calls this directly
no outgoing calls
no test coverage detected