[][src]Trait dicom_encoding::encode::Encode

pub trait Encode {
    fn encode_tag<W>(&self, to: W, tag: Tag) -> Result<()>
    where
        W: Write
;
fn encode_element_header<W>(
        &self,
        to: W,
        de: DataElementHeader
    ) -> Result<usize>
    where
        W: Write
;
fn encode_item_header<W>(&self, to: W, len: u32) -> Result<()>
    where
        W: Write
;
fn encode_primitive<W>(
        &self,
        to: W,
        value: &PrimitiveValue
    ) -> Result<usize>
    where
        W: Write
; fn encode_item_delimiter<W>(&self, to: W) -> Result<()>
    where
        W: Write
, { ... }
fn encode_sequence_delimiter<W>(&self, to: W) -> Result<()>
    where
        W: Write
, { ... } }

Type trait for a data element encoder.

Required methods

fn encode_tag<W>(&self, to: W, tag: Tag) -> Result<()> where
    W: Write

Encode and write an element tag.

fn encode_element_header<W>(
    &self,
    to: W,
    de: DataElementHeader
) -> Result<usize> where
    W: Write

Encode and write a data element header to the given destination. Returns the number of bytes effectively written on success.

fn encode_item_header<W>(&self, to: W, len: u32) -> Result<()> where
    W: Write

Encode and write a DICOM sequence item header to the given destination.

fn encode_primitive<W>(&self, to: W, value: &PrimitiveValue) -> Result<usize> where
    W: Write

Encode and write a primitive DICOM value to the given destination.

Loading content...

Provided methods

fn encode_item_delimiter<W>(&self, to: W) -> Result<()> where
    W: Write

Encode and write a DICOM sequence item delimiter to the given destination.

fn encode_sequence_delimiter<W>(&self, to: W) -> Result<()> where
    W: Write

Encode and write a DICOM sequence delimiter to the given destination.

Loading content...

Implementations on Foreign Types

impl<'_, T: ?Sized> Encode for &'_ T where
    T: Encode
[src]

impl<T: ?Sized> Encode for Box<T> where
    T: Encode
[src]

Loading content...

Implementors

impl Encode for ExplicitVRBigEndianEncoder[src]

impl Encode for ExplicitVRLittleEndianEncoder[src]

impl Encode for ImplicitVRLittleEndianEncoder[src]

Loading content...