pub struct InBuffer<'a> {
pub src: &'a [u8],
pub pos: usize,
}
Expand description
Wrapper around an input buffer.
Bytes will be read starting at src[pos]
.
pos
will be updated after reading.
Fields§
§src: &'a [u8]
§pos: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InBuffer<'a>
impl<'a> Send for InBuffer<'a>
impl<'a> Sync for InBuffer<'a>
impl<'a> Unpin for InBuffer<'a>
impl<'a> UnwindSafe for InBuffer<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more