loro-internal 1.12.0

Loro internal library. Do not use it directly as it's not stable.
Documentation
#[derive(Debug, Clone)]
pub enum LazyLoad<Src, Dst: From<Src>> {
    Src(Src),
    Dst(Dst),
}

impl<Src: Default, Dst: From<Src>> LazyLoad<Src, Dst> {
    pub fn get_mut(&mut self) -> &mut Dst {
        match self {
            LazyLoad::Src(src) => {
                let dst = Dst::from(std::mem::take(src));
                *self = LazyLoad::Dst(dst);
                match self {
                    LazyLoad::Dst(dst) => dst,
                    _ => unreachable!(),
                }
            }
            LazyLoad::Dst(dst) => dst,
        }
    }
}