Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccept dynamically sized Read, Write, and Serialize implementations #99
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #95 (comment).
Sure! Accepting a ?Sized type parameter for io::Read and io::Write means that it will work with &mut io::Read and &mut io::Write trait objects which are dynamically sized.
And accepting a ?Sized type parameter for &T means that it can work with dynamically sized implementations of Serialize, which includes str and [T] among others.