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::sorted for automatic sorting.

Implementations

impl<SampleData> AnyChannels<SampleData>

fn sort(list: SmallVec<[AnyChannel<SampleData>; 4]>) -> Self

A 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) -> ChannelList
fn 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

impl<Samples: PartialEq> StructuralPartialEq for AnyChannels<Samples>

Auto Trait Implementations

impl<Samples> Freeze for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: Freeze,

impl<Samples> RefUnwindSafe for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: RefUnwindSafe,

impl<Samples> Send for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: Send,

impl<Samples> Sync for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: Sync,

impl<Samples> Unpin for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: Unpin,

impl<Samples> UnsafeUnpin for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: UnsafeUnpin,

impl<Samples> UnwindSafe for AnyChannels<Samples> where SmallVec<[AnyChannel<Samples>; 4]>: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for AnyChannels<Samples> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for AnyChannels<Samples> where ST: ?Sized, DT: ?Sized,

impl<T> Any for AnyChannels<Samples> where T: 'static + ?Sized,

impl<T> Borrow<T> for AnyChannels<Samples> where T: ?Sized,

impl<T> BorrowMut<T> for AnyChannels<Samples> where T: ?Sized,

impl<T> CloneToUninit for AnyChannels<Samples> where T: Clone,

impl<T> From<T> for AnyChannels<Samples>

impl<T> Pointable for AnyChannels<Samples>

impl<T> Read<Exclusive, BecauseExclusive> for AnyChannels<Samples> where T: ?Sized,

impl<T> ToOwned for AnyChannels<Samples> where T: Clone,

impl<T, U> Into<U> for AnyChannels<Samples> where U: From<T>,

impl<T, U> TryFrom<U> for AnyChannels<Samples> where U: Into<T>,

impl<T, U> TryInto<U> for AnyChannels<Samples> where U: TryFrom<T>,