Struct dicom_encoding::adapters::jpeg::JPEGAdapter
source · pub struct JPEGAdapter;Trait Implementations§
source§impl Clone for JPEGAdapter
impl Clone for JPEGAdapter
source§fn clone(&self) -> JPEGAdapter
fn clone(&self) -> JPEGAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for JPEGAdapter
impl Debug for JPEGAdapter
source§impl Hash for JPEGAdapter
impl Hash for JPEGAdapter
source§impl Ord for JPEGAdapter
impl Ord for JPEGAdapter
source§fn cmp(&self, other: &JPEGAdapter) -> Ordering
fn cmp(&self, other: &JPEGAdapter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<JPEGAdapter> for JPEGAdapter
impl PartialEq<JPEGAdapter> for JPEGAdapter
source§fn eq(&self, other: &JPEGAdapter) -> bool
fn eq(&self, other: &JPEGAdapter) -> bool
source§impl PartialOrd<JPEGAdapter> for JPEGAdapter
impl PartialOrd<JPEGAdapter> for JPEGAdapter
source§fn partial_cmp(&self, other: &JPEGAdapter) -> Option<Ordering>
fn partial_cmp(&self, other: &JPEGAdapter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PixelRWAdapter for JPEGAdapter
impl PixelRWAdapter for JPEGAdapter
source§fn decode(&self, src: &dyn PixelDataObject, dst: &mut Vec<u8>) -> DecodeResult<()>
fn decode(&self, src: &dyn PixelDataObject, dst: &mut Vec<u8>) -> DecodeResult<()>
Decode DICOM image data with jpeg encoding.
source§fn encode(
&self,
src: &dyn PixelDataObject,
options: EncodeOptions,
dst: &mut Vec<u8>
) -> EncodeResult<()>
fn encode(
&self,
src: &dyn PixelDataObject,
options: EncodeOptions,
dst: &mut Vec<u8>
) -> EncodeResult<()>
Encode a DICOM object’s image into the format supported by this adapter,
writing a byte stream of pixel data fragment values
into the given destination. Read more