Use factored code path

This commit is contained in:
Dominik Werder
2023-05-04 15:59:30 +02:00
parent 585ecfe6a3
commit 7ae5b25107
4 changed files with 36 additions and 142 deletions

View File

@@ -48,6 +48,11 @@ pub trait AppendAllFrom {
fn append_all_from(&mut self, src: &mut Self);
}
// TODO check usage, probably only for legacy
pub trait HasNonemptyFirstBin {
fn has_nonempty_first_bin(&self) -> bool;
}
pub trait AsAnyRef {
fn as_any_ref(&self) -> &dyn Any;
}