pub struct ReadBuf<'a> { /* private fields */ }Implementations§
Source§impl<'a> ReadBuf<'a>
impl<'a> ReadBuf<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn get_u8_at(&self, index: usize) -> u8
pub fn get_i8_at(&self, index: usize) -> i8
pub fn get_i16_at(&self, index: usize) -> i16
pub fn get_i32_at(&self, index: usize) -> i32
pub fn get_i64_at(&self, index: usize) -> i64
pub fn get_u16_at(&self, index: usize) -> u16
pub fn get_u32_at(&self, index: usize) -> u32
pub fn get_u64_at(&self, index: usize) -> u64
pub fn get_f32_at(&self, index: usize) -> f32
pub fn get_f64_at(&self, index: usize) -> f64
pub fn get_slice_at(&self, index: usize, len: usize) -> &[u8] ⓘ
Trait Implementations§
impl<'a> Copy for ReadBuf<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReadBuf<'a>
impl<'a> RefUnwindSafe for ReadBuf<'a>
impl<'a> Send for ReadBuf<'a>
impl<'a> Sync for ReadBuf<'a>
impl<'a> Unpin for ReadBuf<'a>
impl<'a> UnwindSafe for ReadBuf<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more