pub struct Csv { /* private fields */ }
Available on crate feature
csv
only.Expand description
Modulation
from CSV data.
Implementations§
Source§impl Csv
impl Csv
Sourcepub fn new<P, Config>(
path: P,
sampling_config: Config,
option: CsvOption,
) -> Result<Self, AudioFileError>
pub fn new<P, Config>( path: P, sampling_config: Config, option: CsvOption, ) -> Result<Self, AudioFileError>
Create a new Csv
.
Sourcepub fn write<Writer: Write, M: Modulation>(
m: M,
writer: Writer,
option: CsvOption,
) -> Result<(), AudioFileError>
pub fn write<Writer: Write, M: Modulation>( m: M, writer: Writer, option: CsvOption, ) -> Result<(), AudioFileError>
Write a Modulation
into a writer as CSV format.
Trait Implementations§
Source§impl DatagramL<'_> for Csv
impl DatagramL<'_> for Csv
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl Inspectable<'_> for Csv
impl Inspectable<'_> for Csv
Source§type Result = ModulationInspectionResult
type Result = ModulationInspectionResult
The result of the inspection.
Source§fn inspect(
self,
geometry: &Geometry,
_: &Environment,
filter: &DeviceMask,
limits: &FirmwareLimits,
) -> Result<InspectionResult<Self::Result>, ModulationError>
fn inspect( self, geometry: &Geometry, _: &Environment, filter: &DeviceMask, limits: &FirmwareLimits, ) -> Result<InspectionResult<Self::Result>, ModulationError>
Returns the inspection result.
Source§impl Modulation for Csv
impl Modulation for Csv
Source§fn calc(self, _: &FirmwareLimits) -> Result<Vec<u8>, ModulationError>
fn calc(self, _: &FirmwareLimits) -> Result<Vec<u8>, ModulationError>
Calculate the modulation data.
Source§fn sampling_config(&self) -> SamplingConfig
fn sampling_config(&self) -> SamplingConfig
The sampling configuration.
Auto Trait Implementations§
impl Freeze for Csv
impl RefUnwindSafe for Csv
impl Send for Csv
impl Sync for Csv
impl Unpin for Csv
impl UnwindSafe for Csv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, D> Datagram<'a> for Dwhere
D: DatagramS<'a>,
impl<'a, D> Datagram<'a> for Dwhere
D: DatagramS<'a>,
type G = <D as DatagramS<'a>>::G
type Error = <D as DatagramS<'a>>::Error
fn operation_generator( self, geometry: &'a Geometry, env: &Environment, filter: &DeviceMask, limits: &FirmwareLimits, ) -> Result<<D as Datagram<'a>>::G, <D as Datagram<'a>>::Error>
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<'a, D> DatagramS<'a> for Dwhere
D: DatagramL<'a>,
impl<'a, D> DatagramS<'a> for Dwhere
D: DatagramL<'a>,
type G = <D as DatagramL<'a>>::G
type Error = <D as DatagramL<'a>>::Error
fn operation_generator_with_segment( self, geometry: &'a Geometry, env: &Environment, filter: &DeviceMask, limits: &FirmwareLimits, segment: Segment, transition_params: TransitionModeParams, ) -> Result<<D as DatagramS<'a>>::G, <D as DatagramS<'a>>::Error>
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.