/// Split this 
///
/// Returns `Option::None` if the index is out of bounds
Split this
Returns `Option::None` if the index is out of bounds
Split this Returns ` Option :: None ` if the index is out of bounds
pub fn split(&mut self, index: usize) -> Option<ArcAlloc<'a>> {
        if index < self.len() {
            self.len = index;
            Some(ArcAlloc {
                data: self.data.clone(),
                len: self.len() - index,
                offset: self.offset + index,
            })
        } else {
            None
        }
    }
pub fn split ( & mut self , index : usize ) -> Option < ArcAlloc < ' a > > { if index < self . len ( ) { self . len = index ; Some ( ArcAlloc { data : self . data . clone ( ) , len : self . len ( ) - index , offset : self . offset + index , } ) } else { None } }
Split this
Returns `Option::None` if the index is out of bounds
Split this Returns ` Option :: None ` if the index is out of bounds
&mut self
index
usize