wip: body typeid full data

This commit is contained in:
Sean McArthur
2019-08-29 10:02:47 -07:00
parent 62a96c077b
commit 3c6f7999cd
3 changed files with 40 additions and 1 deletions

View File

@@ -285,6 +285,14 @@ impl Body {
}
}
}
pub(super) fn take_full_data(&mut self) -> Option<Chunk> {
if let Kind::Once(ref mut chunk) = self.kind {
chunk.take()
} else {
None
}
}
}
impl Default for Body {