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 upSample should have super traits #118
Comments
|
Hi @bkfox, thanks for the issue! You can achieve your As an alternative to Also, keep in mind that you can define your own sample trait for your project that better suits your needs if trait MySample: Sample + hound::Sample + Add + Default {}
impl<T> MySample for T where T: Sample + hound::Sample + Add + Default {}I hope this helps! |
Few supertrait would be really usefull for Sample in order to use it as generic parameter:
buffer.resize(1024, S::default());