pub struct V3;
Expand description
A marker type for the SAF version 3.
In this version, the SAF item file contains the full set of likelihoods for each sample frequency.
See also Version
for a note on naming of versions.
Trait Implementations§
Source§impl Version for V3
impl Version for V3
Source§const MAGIC_NUMBER: [u8; 8]
const MAGIC_NUMBER: [u8; 8]
The SAF version magic number.
Source§type Item = Likelihoods
type Item = Likelihoods
The items contained in the SAF item file for this version.
Source§fn create_record_buf(index: &Index<V3>) -> Record<usize, <V3 as Version>::Item>
fn create_record_buf(index: &Index<V3>) -> Record<usize, <V3 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<V3>, Error>where
R: BufRead,
fn read_index_record<R>(reader: &mut R) -> Result<Record<V3>, 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 <V3 as Version>::Item,
) -> Result<ReadStatus, Error>where
R: BufRead,
fn read_item<R>(
reader: &mut R,
buf: &mut <V3 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<V3>,
) -> Result<(), Error>where
W: Write,
fn write_index_record<W>(
writer: &mut W,
record: &Record<V3>,
) -> Result<(), Error>where
W: Write,
Writes the SAF index record for to a reader.
Source§fn write_item<W>(
writer: &mut W,
item: &<V3 as Version>::Item,
) -> Result<(), Error>where
W: Write,
fn write_item<W>(
writer: &mut W,
item: &<V3 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, V3>,
record: &Record<I, <V3 as Version>::Item>,
) -> Result<(), Error>
fn write_record<W, I>( writer: &mut Writer<W, V3>, record: &Record<I, <V3 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 V3
impl Eq for V3
impl StructuralPartialEq for V3
Auto Trait Implementations§
impl Freeze for V3
impl RefUnwindSafe for V3
impl Send for V3
impl Sync for V3
impl Unpin for V3
impl UnwindSafe for V3
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