[−][src]Trait dicom_encoding::decode::erased::BasicDecode
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.
Trait Implementations
impl<'s> BasicDecode for &'s dyn BasicDecode
[src]
fn endianness(&self) -> Endianness
[src]
fn decode_us<S>(&self, source: S) -> Result<u16> where
S: Read,
[src]
S: Read,
fn decode_ul<S>(&self, source: S) -> Result<u32> where
S: Read,
[src]
S: Read,
fn decode_uv<S>(&self, source: S) -> Result<u64> where
S: Read,
[src]
S: Read,
fn decode_ss<S>(&self, source: S) -> Result<i16> where
S: Read,
[src]
S: Read,
fn decode_sl<S>(&self, source: S) -> Result<i32> where
S: Read,
[src]
S: Read,
fn decode_sv<S>(&self, source: S) -> Result<i64> where
S: Read,
[src]
S: Read,
fn decode_fl<S>(&self, source: S) -> Result<f32> where
S: Read,
[src]
S: Read,
fn decode_fd<S>(&self, source: S) -> Result<f64> where
S: Read,
[src]
S: Read,
fn decode_tag<S>(&self, source: S) -> Result<Tag> where
S: Read,
[src]
S: Read,
Decode a DICOM attribute tag from the given source.