feat: add ASTDiff and impl lazy compilation

This commit is contained in:
Shunsuke Shibayama 2023-05-13 11:33:48 +09:00
parent cac2c51cd4
commit 33e1b776cb
9 changed files with 140 additions and 7 deletions

View file

@ -351,6 +351,12 @@ macro_rules! impl_stream {
}
}
impl std::ops::IndexMut<usize> for $Strc {
fn index_mut(&mut self, idx: usize) -> &mut Self::Output {
erg_common::traits::Stream::get_mut(self, idx).unwrap()
}
}
impl From<$Strc> for Vec<$Inner> {
fn from(item: $Strc) -> Vec<$Inner> {
item.payload()