chore: add DefBody::pre_block

This commit is contained in:
Shunsuke Shibayama 2023-09-20 12:32:25 +09:00
parent 57d3a23aed
commit b33ce38ed5
9 changed files with 361 additions and 196 deletions

View file

@ -259,6 +259,11 @@ pub trait Stream<T>: Sized {
fn retain(&mut self, f: impl FnMut(&T) -> bool) {
self.ref_mut_payload().retain(f);
}
fn concat(mut self, other: Self) -> Self {
self.extend(other.payload());
self
}
}
#[macro_export]