Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Signal for unsized types implementing Signal (trait objs)
This extends the existing implementation for `&'a mut S where S: Signal` and `Box<Signal>` to be a little more general. E.g. `&mut my_signal as &mut Signal` now produces a `&mut Signal` trait object which also implements `Signal`. Boxed signals no longer require the `Sized` bound in order to implement `Signal` themselves, E.g. the `Sized` bound in `Box<Signal<Frame=[f32; 2]> + Sized>` is no longer necessary. These changes now reflect the implementations of `Iterator` for `&mut Iterator` and `Box<Iterator>` in the std library. cc @andrewcsmith this alters the `Signal` impl for `Box<Signal>` introduced in RustAudio#66, however I don't believe this is a breaking change as it should be strictly more general 👍
- Loading branch information