pub unsafe fn slice_unchecked(this: &Self, extra_offset: usize, len: usize) -> Self {
        Self(NonZeroUsize::new(len).map(|len| {
            ReadResultInner::slice_unchecked(this.0.as_ref().unwrap(), extra_offset, len)
        }))
    }
/// Creates a slice of this ReadResult with the given offset and length.
/// Similar to [`ReadResult::slice`], but does not check if the offset and
/// length are correct.
///
/// # Safety
///
/// Any user of this function must guarantee that the offset and length are
/// correct (not out of bounds).
Creates a slice of this ReadResult with the given offset and length.
Similar to [`ReadResult::slice`], but does not check if the offset and
length are correct.
Creates a slice of this ReadResult with the given offset and length . Similar to [ ` ReadResult :: slice ` ] but does not check if the offset and length are correct .
pub unsafe fn slice_unchecked(this: &Self, extra_offset: usize, len: usize) -> Self {
        Self(NonZeroUsize::new(len).map(|len| {
            ReadResultInner::slice_unchecked(this.0.as_ref().unwrap(), extra_offset, len)
        }))
    }
pub unsafe fn slice_unchecked ( this : & Self , extra_offset : usize , len : usize ) -> Self { Self ( NonZeroUsize :: new ( len ) . map ( | len | { ReadResultInner :: slice_unchecked ( this . 0 . as_ref ( ) . unwrap ( ) , extra_offset , len ) } ) ) }
Creates a slice of this ReadResult with the given offset and length.
Creates a slice of this ReadResult with the given offset and length .
this
&Self
extra_offset
usize
len
usize
this
&Self
extra_offset
usize
len
usize
safety
Any user of this function must guarantee that the offset and length are
correct (not out of bounds).
Any user of this function must guarantee that the offset and length are correct ( not out of bounds ) .