pub struct RingBufSlice<'a, T> { /* private fields */ }
Expand description
an immutable element range of a RingBuf
Implementations§
Source§impl<'a, T> RingBufSlice<'a, T>
impl<'a, T> RingBufSlice<'a, T>
Sourcepub fn range(&self, range: Range<usize>) -> RingBufSlice<'a, T>
pub fn range(&self, range: Range<usize>) -> RingBufSlice<'a, T>
get sub-range into range
Source§impl<'a, T: Copy> RingBufSlice<'a, T>
impl<'a, T: Copy> RingBufSlice<'a, T>
Sourcepub fn copy_to_slice(&self, slice: &mut [T])
pub fn copy_to_slice(&self, slice: &mut [T])
copy contents of range to a slice
Sourcepub unsafe fn copy_to_ptr(&self, dest: *mut T, count: usize)
pub unsafe fn copy_to_ptr(&self, dest: *mut T, count: usize)
copy contents of range to a raw pointer
Sourcepub fn read_fixed<const N: usize>(&self) -> [T; N]
pub fn read_fixed<const N: usize>(&self) -> [T; N]
read elements as fixed length array
Auto Trait Implementations§
impl<'a, T> Freeze for RingBufSlice<'a, T>
impl<'a, T> RefUnwindSafe for RingBufSlice<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for RingBufSlice<'a, T>where
T: Sync,
impl<'a, T> Sync for RingBufSlice<'a, T>where
T: Sync,
impl<'a, T> Unpin for RingBufSlice<'a, T>
impl<'a, T> UnwindSafe for RingBufSlice<'a, T>where
T: RefUnwindSafe,
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