1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Fragment;
use alloc::vec::Vec;
use core::ops::{Deref, DerefMut};

impl<T> Deref for Fragment<T> {
    type Target = Vec<T>;
    fn deref(&self) -> &Self::Target {
        &self.data
    }
}
impl<T> DerefMut for Fragment<T> {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.data
    }
}