Struct AnyChannels
pub struct AnyChannels<Samples> { pub list: SmallVec<[AnyChannel<Samples>; 4]> }
A dynamic list of arbitrary channels.
Samples can currently only be FlatSamples or Levels<FlatSamples>.
Fields
list: SmallVec<[AnyChannel<Samples>; 4]>This list must be sorted alphabetically, by channel name. Use
AnyChannels::sortedfor automatic sorting.
Implementations
impl<SampleData> AnyChannels<SampleData>
fn sort(list: SmallVec<[AnyChannel<SampleData>; 4]>) -> SelfA new list of arbitrary channels. Sorts the list to make it alphabetically stable.
Trait Implementations
impl<'samples, Samples> WritableChannels<'samples> for AnyChannels<Samples>
where
Samples: 'samples + WritableSamples<'samples>,
type Writer = AnyChannelsWriter<<Samples as WritableSamples<'samples>>::Writer>;fn infer_channel_list(&self) -> ChannelListfn infer_level_modes(&self) -> (LevelMode, RoundingMode)fn create_writer(&'samples self, header: &Header) -> Self::Writer
impl<S> ValidateResult for AnyChannels<S>
where
S: ValidateResult,
fn validate_result(&self, other: &Self, options: ValidationOptions, location: impl Fn() -> String) -> ValidationResult
impl<Samples: Clone> Clone for AnyChannels<Samples>
fn clone(&self) -> Self
impl<Samples: Debug> Debug for AnyChannels<Samples>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Samples: Eq> Eq for AnyChannels<Samples>
impl<Samples: PartialEq> PartialEq for AnyChannels<Samples>
fn eq(&self, other: &Self) -> bool