[][src]Trait dicom_encoding::decode::erased::BasicDecode

pub trait BasicDecode {
    fn endianness(&self) -> Endianness;
fn erased_decode_us(&self, source: &mut dyn Read) -> Result<u16>;
fn erased_decode_ul(&self, source: &mut dyn Read) -> Result<u32>;
fn erased_decode_uv(&self, source: &mut dyn Read) -> Result<u64>;
fn erased_decode_ss(&self, source: &mut dyn Read) -> Result<i16>;
fn erased_decode_sl(&self, source: &mut dyn Read) -> Result<i32>;
fn erased_decode_sv(&self, source: &mut dyn Read) -> Result<i64>;
fn erased_decode_fl(&self, source: &mut dyn Read) -> Result<f32>;
fn erased_decode_fd(&self, source: &mut dyn Read) -> Result<f64>; }

Type trait for reading and decoding basic data values from a data source.

  • This trait aims to provide methods for reading binary numbers based on the
  • source's endianness.
  • This is the type-erased version of super::BasicDecode, where the data source type is not
  • known in compile time.

Required methods

fn endianness(&self) -> Endianness

Retrieve the source's endianness, as expected by this decoder.

fn erased_decode_us(&self, source: &mut dyn Read) -> Result<u16>

Decode an unsigned short value from the given source.

fn erased_decode_ul(&self, source: &mut dyn Read) -> Result<u32>

Decode an unsigned long value from the given source.

fn erased_decode_uv(&self, source: &mut dyn Read) -> Result<u64>

Decode an unsigned very long value from the given source.

fn erased_decode_ss(&self, source: &mut dyn Read) -> Result<i16>

Decode a signed short value from the given source.

fn erased_decode_sl(&self, source: &mut dyn Read) -> Result<i32>

Decode a signed long value from the given source.

fn erased_decode_sv(&self, source: &mut dyn Read) -> Result<i64>

Decode a signed very long value from the given source.

fn erased_decode_fl(&self, source: &mut dyn Read) -> Result<f32>

Decode a single precision float value from the given source.

fn erased_decode_fd(&self, source: &mut dyn Read) -> Result<f64>

Decode a double precision float value from the given source.

Loading content...

Trait Implementations

impl<'s> BasicDecode for &'s dyn BasicDecode[src]

fn decode_tag<S>(&self, source: S) -> Result<Tag> where
    S: Read
[src]

Decode a DICOM attribute tag from the given source.

Implementors

Loading content...