You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::io::Cursor has a fn to update the position yet Take does not have a fn for setting the limit. Being able to update the limit is required for implementing various traits for Take. For example, Read works by updating the limit.
I was hoping to implement Buf for Take (in the bytes crate) but am currently unable to do so.
The text was updated successfully, but these errors were encountered:
This is only missing the set_limit function today, as the rest are implemented (tracked, in part, by #41519). I've filed #42697 to implement set_limit.
std::io::Cursor
has a fn to update the position yetTake
does not have a fn for setting the limit. Being able to update the limit is required for implementing various traits for Take. For example,Read
works by updating the limit.I was hoping to implement
Buf
forTake
(in the bytes crate) but am currently unable to do so.The text was updated successfully, but these errors were encountered: