[−][src]Trait dicom_encoding::encode::EncodeTo
Type trait for a data element encoder to a single known writer type W
.
Required methods
fn encode_tag(&self, to: &mut W, tag: Tag) -> Result<()> where
W: Write,
W: Write,
Encode and write an element tag.
fn encode_element_header(
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize> where
W: Write,
&self,
to: &mut 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(&self, to: &mut W, len: u32) -> Result<()> where
W: Write,
W: Write,
Encode and write a DICOM sequence item header to the given destination.
fn encode_item_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
W: Write,
Encode and write a DICOM sequence item delimiter to the given destination.
fn encode_sequence_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
W: Write,
Encode and write a DICOM sequence delimiter to the given destination.
fn encode_primitive(&self, to: &mut W, value: &PrimitiveValue) -> Result<usize> where
W: Write,
W: Write,
Encode and write a primitive DICOM value to the given destination.
Implementations on Foreign Types
impl<T, W: ?Sized, '_> EncodeTo<W> for &'_ T where
T: EncodeTo<W>,
[src]
T: EncodeTo<W>,
fn encode_tag(&self, to: &mut W, tag: Tag) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_element_header(
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize> where
W: Write,
[src]
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize> where
W: Write,
fn encode_item_header(&self, to: &mut W, len: u32) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_item_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_sequence_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_primitive(&self, to: &mut W, value: &PrimitiveValue) -> Result<usize> where
W: Write,
[src]
W: Write,
Encode and write a primitive DICOM value to the given destination.
impl<T: ?Sized, W: ?Sized> EncodeTo<W> for Box<T> where
T: EncodeTo<W>,
[src]
T: EncodeTo<W>,
fn encode_tag(&self, to: &mut W, tag: Tag) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_element_header(
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize> where
W: Write,
[src]
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize> where
W: Write,
fn encode_item_header(&self, to: &mut W, len: u32) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_item_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_sequence_delimiter(&self, to: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
fn encode_primitive(&self, to: &mut W, value: &PrimitiveValue) -> Result<usize> where
W: Write,
[src]
W: Write,
Encode and write a primitive DICOM value to the given destination.
Implementors
impl<T, W: ?Sized> EncodeTo<W> for EncoderFor<T, W> where
T: Encode,
W: Write,
[src]
T: Encode,
W: Write,
fn encode_tag(&self, to: &mut W, tag: Tag) -> Result<()>
[src]
fn encode_element_header(
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize>
[src]
&self,
to: &mut W,
de: DataElementHeader
) -> Result<usize>