-
Notifications
You must be signed in to change notification settings - Fork 268
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
Unnecessary Sized
constraint on BufMut::put
method?
#612
Comments
GrizzlT
changed the title
Unnecessary
Unnecessary May 8, 2023
Sized
constraint on BufMut::Sized
constraint on BufMut::put
method
GrizzlT
changed the title
Unnecessary
Unnecessary May 8, 2023
Sized
constraint on BufMut::put
methodSized
constraint on BufMut::put
method?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using this crate I noticed that the
BufMut::put
method requiresSelf
to beSized
.This makes it difficult for me to use that function in
?Sized
contexts for better optimizations. Is there a reasonthis trait bound is necessary?
I looked at
BufMut::put
andBufMut::put_slice
and it seems that neither method uses functions that requireSelf: Sized
whileput
does requireSized
andput_slice
does not. Could the trait bound be removed from the api?The text was updated successfully, but these errors were encountered: