From: Ian Jackson Date: Sun, 1 Aug 2021 23:55:01 +0000 (+0100) Subject: note about Box vs Vec X-Git-Tag: hippotat/1.0.0~387 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=45f536b1737ca765be0bc2a754f98f75c0f39fab;p=hippotat.git note about Box vs Vec Signed-off-by: Ian Jackson --- diff --git a/src/slip.rs b/src/slip.rs index 1713057..07ae827 100644 --- a/src/slip.rs +++ b/src/slip.rs @@ -66,6 +66,10 @@ where EH: FnMut(PacketError) pub type Frame = Vec; pub type FramesData = Vec>; +//pub type Frame = Box<[u8]>; +//pub type FramesData = Vec; +// `From>` is not implemented for `Bytes` + #[derive(Default)] pub struct Frames {