pub struct V4;Expand description
A marker type for the SAF version 4.
In this version, the SAF item file contains only a smaller “band” of likelihoods centered around the most likely sample frequency, along with information about the location of the band.
See also Version for a note on naming of versions.
Trait Implementations§
Source§impl Version for V4
impl Version for V4
Source§const MAGIC_NUMBER: [u8; 8]
const MAGIC_NUMBER: [u8; 8]
The SAF version magic number.
Source§fn create_record_buf(_index: &Index<V4>) -> Record<usize, <V4 as Version>::Item>
fn create_record_buf(_index: &Index<V4>) -> Record<usize, <V4 as Version>::Item>
Creates a SAF record buffer suitable for reading from a reader for this version.
Source§fn read_index_record<R>(reader: &mut R) -> Result<Record<V4>, Error>where
R: BufRead,
fn read_index_record<R>(reader: &mut R) -> Result<Record<V4>, Error>where
R: BufRead,
Reads the SAF index record for this version from a reader.
Source§fn read_item<R>(
reader: &mut R,
buf: &mut <V4 as Version>::Item,
) -> Result<ReadStatus, Error>where
R: BufRead,
fn read_item<R>(
reader: &mut R,
buf: &mut <V4 as Version>::Item,
) -> Result<ReadStatus, Error>where
R: BufRead,
Reads a single item from a reader into a provided buffer. Read more
Source§fn write_index_record<W>(
writer: &mut W,
record: &Record<V4>,
) -> Result<(), Error>where
W: Write,
fn write_index_record<W>(
writer: &mut W,
record: &Record<V4>,
) -> Result<(), Error>where
W: Write,
Writes the SAF index record for to a reader.
Source§fn write_item<W>(
writer: &mut W,
item: &<V4 as Version>::Item,
) -> Result<(), Error>where
W: Write,
fn write_item<W>(
writer: &mut W,
item: &<V4 as Version>::Item,
) -> Result<(), Error>where
W: Write,
Writes a single item to a writer.
Source§fn write_record<W, I>(
writer: &mut Writer<W, V4>,
record: &Record<I, <V4 as Version>::Item>,
) -> Result<(), Error>
fn write_record<W, I>( writer: &mut Writer<W, V4>, record: &Record<I, <V4 as Version>::Item>, ) -> Result<(), Error>
Writes a single record to a writer.
Source§fn read_record<R>(
reader: &mut Reader<R, Self>,
buf: &mut Record<usize, Self::Item>,
) -> Result<ReadStatus, Error>where
R: BufRead,
fn read_record<R>(
reader: &mut Reader<R, Self>,
buf: &mut Record<usize, Self::Item>,
) -> Result<ReadStatus, Error>where
R: BufRead,
Reads a single record from a SAF reader into a provided buffer. Read more
impl Copy for V4
impl Eq for V4
impl StructuralPartialEq for V4
Auto Trait Implementations§
impl Freeze for V4
impl RefUnwindSafe for V4
impl Send for V4
impl Sync for V4
impl Unpin for V4
impl UnwindSafe for V4
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more