rave_types 0.1.2

Common types for rave.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::codec::Codec;
use crate::device::Device;
use crate::format::Format;
use crate::frame::Frame;
use crate::unit::Unit;

pub trait Encode {
    type Device: Device;
    type Codec: Codec;
    type Format: Format;
    type Error;

    fn encode(
        &mut self,
        frame: Frame<Self::Device, Self::Format>,
    ) -> Result<Vec<Unit<Self::Codec>>, Self::Error>;
}