pub struct RingRange { /* private fields */ }Expand description
A range within a ring buffer.
Implementations§
Source§impl RingRange
impl RingRange
Sourcepub fn writer<'a, T: Ring>(&self, ring: &'a T) -> RingRangeWriter<'a, T::Memory>
pub fn writer<'a, T: Ring>(&self, ring: &'a T) -> RingRangeWriter<'a, T::Memory>
Retrieves a MemoryWrite that allows for writing to the range.
Sourcepub fn write_aligned_full<T: Ring>(&self, ring: &T, data: &[u64])
pub fn write_aligned_full<T: Ring>(&self, ring: &T, data: &[u64])
Writes the full range using aligned writes of u64 values.
§Panics
Panics if the ring range is not exactly the size of data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RingRange
impl RefUnwindSafe for RingRange
impl Send for RingRange
impl Sync for RingRange
impl Unpin for RingRange
impl UnwindSafe for RingRange
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