pub fn slice(&mut self, arm: bool) -> Option<(&[T], Vec<M::Item>)> {
        let (space, offset, done, tags) = self.space_and_offset_and_meta(arm);
        self.last_space = space;
        if space == 0 && done {
            None
        } else {
            unsafe { Some((&self.buffer.slice_with_offset(offset)[0..space], tags)) }
        }
    }
/// Get a slice with the items available to read.
///
/// Returns `None` if the reader was dropped and all data was read.
Get a slice with the items available to read.
Returns `None` if the reader was dropped and all data was read.
Get a slice with the items available to read . Returns ` None ` if the reader was dropped and all data was read .
pub fn slice(&mut self, arm: bool) -> Option<(&[T], Vec<M::Item>)> {
        let (space, offset, done, tags) = self.space_and_offset_and_meta(arm);
        self.last_space = space;
        if space == 0 && done {
            None
        } else {
            unsafe { Some((&self.buffer.slice_with_offset(offset)[0..space], tags)) }
        }
    }
pub fn slice ( & mut self , arm : bool ) -> Option < ( & [ T ] , Vec < M :: Item > ) > { let ( space , offset , done , tags ) = self . space_and_offset_and_meta ( arm ) ; self . last_space = space ; if space == 0 && done { None } else { unsafe { Some ( ( & self . buffer . slice_with_offset ( offset ) [ 0 .. space ] , tags ) ) } } }
Get a slice with the items available to read.
Get a slice with the items available to read .
&mut self
arm
bool
&mut self
arm
bool