-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement more traits for EasyBuf #120
Comments
I think also |
|
No, I mean slicing should return |
Oh, yeah |
The intention was to be very conservative for the initial iteration that we could tack on more functionality later, but I couldn't mind adding a few more common trait impls and such. I'd prefer to avoid |
cc #128 |
Debug format looks like this for small resp. long buffers EasyBuf{len=2/6 [5, 6]} EasyBuf{len=255/255 [0, 1, 2, 3, ..., 251, 252, 253, 254]}
impl Into<Vec<u8>> for EasyBuf (cf. #120)
@tailhook I was looking at implementing Index for EasyBuf, with Output = EasyBuf. But it seems |
@manuel-woelker, hm, looks like we can't do that :(. The best way I can see is to have a method |
Done in https://github.com/alexcrichton/tokio-io, the migration of this crate will be tracked by #61 |
Clone
,Deref
,Into<Vec<u8>>
would be a start.The text was updated successfully, but these errors were encountered: