Enum dicom_encoding::decode::basic::BasicDecoder [−][src]
pub enum BasicDecoder {
LE(LittleEndianBasicDecoder),
BE(BigEndianBasicDecoder),
}A basic decoder with support for both Little Endian an Big Endian encoding, decided at run-time. Since only two values are possible, this enum may become more efficient than the use of a trait object.
Variants
Decode in Little Endian
Decode in Big Endian
Implementations
impl BasicDecoder[src]
impl BasicDecoder[src]pub fn new(endianness: Endianness) -> Self[src]
Create a basic decoder for the given byte order.
Trait Implementations
impl BasicDecode for BasicDecoder[src]
impl BasicDecode for BasicDecoder[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,
impl Clone for BasicDecoder[src]
impl Clone for BasicDecoder[src]fn clone(&self) -> BasicDecoder[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<Endianness> for BasicDecoder[src]
impl From<Endianness> for BasicDecoder[src]fn from(endianness: Endianness) -> Self[src]
impl PartialEq<BasicDecoder> for BasicDecoder[src]
impl PartialEq<BasicDecoder> for BasicDecoder[src]fn eq(&self, other: &BasicDecoder) -> bool[src]
fn ne(&self, other: &BasicDecoder) -> bool[src]
impl StructuralPartialEq for BasicDecoder[src]
impl StructuralPartialEq for BasicDecoder[src]Auto Trait Implementations
impl RefUnwindSafe for BasicDecoder
impl RefUnwindSafe for BasicDecoderimpl Send for BasicDecoder
impl Send for BasicDecoderimpl Sync for BasicDecoder
impl Sync for BasicDecoderimpl Unpin for BasicDecoder
impl Unpin for BasicDecoderimpl UnwindSafe for BasicDecoder
impl UnwindSafe for BasicDecoder