MCPcopy Index your code
hub / github.com/dermesser/integer-encoding-rs / FixedIntReader

Interface FixedIntReader

src/reader.rs:118–123  ·  view source on GitHub ↗

A trait for reading [`FixedInts`] from any other `Reader`.

Source from the content-addressed store, hash-verified

116
117/// A trait for reading [`FixedInts`] from any other `Reader`.
118pub 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"))]

Callers

nothing calls this directly

Implementers 1

reader.rssrc/reader.rs

Calls

no outgoing calls

Tested by

no test coverage detected