chiark / gitweb /
note about Box vs Vec
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Aug 2021 23:55:01 +0000 (00:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Aug 2021 23:55:01 +0000 (00:55 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/slip.rs

index 1713057cb156dbaa8d050662859e32d8ae3e7553..07ae827b6d07ababc50a41d28277477b2fe4c2a0 100644 (file)
@@ -66,6 +66,10 @@ where EH: FnMut(PacketError)
 
 pub type Frame = Vec<u8>;
 pub type FramesData = Vec<Vec<u8>>;
+//pub type Frame = Box<[u8]>;
+//pub type FramesData = Vec<Frame>;
+//  `From<Box<[u8]>>` is not implemented for `Bytes`
+
 
 #[derive(Default)]
 pub struct Frames {