Skip to content
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

Provide more robust impls of Frame::ToFrameBody #78

Open
zslayton opened this issue Apr 5, 2015 · 1 comment
Open

Provide more robust impls of Frame::ToFrameBody #78

zslayton opened this issue Apr 5, 2015 · 1 comment
Assignees
Milestone

Comments

@zslayton
Copy link
Owner

zslayton commented Apr 5, 2015

This trait is defined for String, &str and &[u8]. It feels like there should be a way to write an elegant generic impl to cover a variety of classes using AsRef and similar, but initial efforts were fruitless. This was in part due to rustc's refusal to allow more than one generic implementation of a trait for fear that the resulting code will be ambiguous.

@zslayton zslayton self-assigned this Apr 5, 2015
@zslayton zslayton added this to the 1.0 milestone Apr 5, 2015
@zslayton zslayton changed the title Provide more robust impls of ToFrameBody Provide more robust impls of Frame::ToFrameBody Apr 5, 2015
@zslayton
Copy link
Owner Author

This will likely become much easier when impl specialization lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant