fn add_parsed(parsed: &[Highlight], existing: &mut [Highlight]) -> Option<usize> {
            let len = parsed.len();
            if len == 0 {
                return None;
            }
            for (muth, h) in existing[..len].iter_mut().zip(parsed.iter()) {
                *muth = *h;
            }
            Some(len)
        }
// Copy the parsed highlights into existing and return the amount moved. None if
// parsed was empty
Copy the parsed highlights into existing and return the amount moved. None if
parsed was empty
Copy the parsed highlights into existing and return the amount moved . None if parsed was empty
fn add_parsed(parsed: &[Highlight], existing: &mut [Highlight]) -> Option<usize> {
            let len = parsed.len();
            if len == 0 {
                return None;
            }
            for (muth, h) in existing[..len].iter_mut().zip(parsed.iter()) {
                *muth = *h;
            }
            Some(len)
        }
fn add_parsed ( parsed : & [ Highlight ] , existing : & mut [ Highlight ] ) -> Option < usize > { let len = parsed . len ( ) ; if len == 0 { return None ; } for ( muth , h ) in existing [ .. len ] . iter_mut ( ) . zip ( parsed . iter ( ) ) { * muth = * h ; } Some ( len ) }
Copy the parsed highlights into existing and return the amount moved.
Copy the parsed highlights into existing and return the amount moved .
parsed
&[Highlight]
existing
&mut [Highlight]