fn reconstruct(&mut self, index: usize, fragments: &[&Fragment]) -> Result<Vec<u8>> {
        track_assert!(
            index < self.fragments().get(),
            ErrorKind::Other,
            "Too large index: index={}, fragments={}",
            index,
            self.fragments()
        );
        let decoded = self.decode(fragments)?;
        let mut encoded = self.encode(&decoded)?;
        Ok(encoded.swap_remove(index))
    }
/// Reconstructs the fragment specified by the given index from other fragments.
Reconstructs the fragment specified by the given index from other fragments.
Reconstructs the fragment specified by the given index from other fragments .
fn reconstruct(&mut self, index: usize, fragments: &[&Fragment]) -> Result<Vec<u8>> {
        track_assert!(
            index < self.fragments().get(),
            ErrorKind::Other,
            "Too large index: index={}, fragments={}",
            index,
            self.fragments()
        );
        let decoded = self.decode(fragments)?;
        let mut encoded = self.encode(&decoded)?;
        Ok(encoded.swap_remove(index))
    }
fn reconstruct ( & mut self , index : usize , fragments : & [ & Fragment ] ) -> Result < Vec < u8 > > { track_assert ! ( index self fragments ( ) get ( ) ErrorKind Other " " index self fragments ( ) ) ; let decoded = self . decode ( fragments ) ? ; let mut encoded = self . encode ( & decoded ) ? ; Ok ( encoded . swap_remove ( index ) ) }
Reconstructs the fragment specified by the given index from other fragments.
Reconstructs the fragment specified by the given index from other fragments .
&mut self
index
usize
fragments
&[&Fragment]
&mut self
index
usize
fragments
&[&Fragment]