pub trait StreamExt<E>: Stream {
// Provided method
fn iread_n_const<const N: usize>(
self,
err: impl FnOnce(&[u8]) -> E
) -> Result<([u8; N], Self), E> { ... }
}Expand description
Provided Methods§
sourcefn iread_n_const<const N: usize>(
self,
err: impl FnOnce(&[u8]) -> E
) -> Result<([u8; N], Self), E>
fn iread_n_const<const N: usize>( self, err: impl FnOnce(&[u8]) -> E ) -> Result<([u8; N], Self), E>
const-length equivalent of Stream::iread_n.