Trait sample::frame::NumChannels
[−]
[src]
pub trait NumChannels { }
Restricts the types that may be used as the Frame::NumChannels
associated type.
NumChannels
allows us to enforce the number of channels that a Frame
must have in certain
operations. This is particularly useful for Frame::map
and Frame::zip_map
, as it allows us
to guarantee that the input and output frame types will retain the same number of channels at
compile-time, and in turn removes the need for bounds checking.
This trait is implemented for types N1
...N32
.
Implementors
impl NumChannels for N1
impl NumChannels for N2
impl NumChannels for N3
impl NumChannels for N4
impl NumChannels for N5
impl NumChannels for N6
impl NumChannels for N7
impl NumChannels for N8
impl NumChannels for N9
impl NumChannels for N10
impl NumChannels for N11
impl NumChannels for N12
impl NumChannels for N13
impl NumChannels for N14
impl NumChannels for N15
impl NumChannels for N16
impl NumChannels for N17
impl NumChannels for N18
impl NumChannels for N19
impl NumChannels for N20
impl NumChannels for N21
impl NumChannels for N22
impl NumChannels for N23
impl NumChannels for N24
impl NumChannels for N25
impl NumChannels for N26
impl NumChannels for N27
impl NumChannels for N28
impl NumChannels for N29
impl NumChannels for N30
impl NumChannels for N31
impl NumChannels for N32