pub struct ReadableBytes<'a> {
pub data: &'a [u8],
pub read_offset: &'a mut usize,
}
Fields§
§data: &'a [u8]
§read_offset: &'a mut usize
Implementations§
Source§impl<'a> ReadableBytes<'a>
impl<'a> ReadableBytes<'a>
pub fn bytes_avail(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for ReadableBytes<'a>
impl<'a> RefUnwindSafe for ReadableBytes<'a>
impl<'a> Send for ReadableBytes<'a>
impl<'a> Sync for ReadableBytes<'a>
impl<'a> Unpin for ReadableBytes<'a>
impl<'a> !UnwindSafe for ReadableBytes<'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