ChannelCount

Trait ChannelCount 

Source
pub trait ChannelCount {
    type S: Sampleable;

    // Required method
    fn count() -> u8;

    // Provided methods
    fn format() -> pa_sample_format_t { ... }
    fn sample_size() -> usize { ... }
}

Required Associated Types§

Required Methods§

Source

fn count() -> u8

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<S> ChannelCount for [S; 1]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 2]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 3]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 4]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 5]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 6]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 7]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 8]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Source§

impl<S> ChannelCount for [S; 9]
where S: Sampleable,

Source§

type S = S

Source§

fn count() -> u8

Implementors§