pub struct MissingSegment { /* private fields */ }Expand description
A description of a segment in the buffer that hasn’t been written to.
Implementations§
Source§impl MissingSegment
impl MissingSegment
Sourcepub fn offsets_for(self, frame_size: usize) -> impl Iterator<Item = usize>
pub fn offsets_for(self, frame_size: usize) -> impl Iterator<Item = usize>
Returns an iterator of all the absolute offsets for byte
segments of a specific size that can fit within this
MissingSegment.
Trait Implementations§
Source§impl Clone for MissingSegment
impl Clone for MissingSegment
Source§fn clone(&self) -> MissingSegment
fn clone(&self) -> MissingSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MissingSegment
impl Debug for MissingSegment
Source§impl PartialEq for MissingSegment
impl PartialEq for MissingSegment
impl Copy for MissingSegment
impl Eq for MissingSegment
impl StructuralPartialEq for MissingSegment
Auto Trait Implementations§
impl Freeze for MissingSegment
impl RefUnwindSafe for MissingSegment
impl Send for MissingSegment
impl Sync for MissingSegment
impl Unpin for MissingSegment
impl UnwindSafe for MissingSegment
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