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
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AnyChannels<Samples>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AnyChannels<Samples>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AnyChannels<Samples>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AnyChannels<Samples>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for AnyChannels<Samples>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for AnyChannels<Samples>
where
T: ?Sized,
impl<T> ToOwned for AnyChannels<Samples>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for AnyChannels<Samples>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AnyChannels<Samples>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AnyChannels<Samples>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>