pub enum NeverPixelAdapter {}
Expand description
An immaterial type representing an adapter which is never provided.
This type may be used as the type parameters R
and W
of TransferSyntax
when representing a transfer syntax which
either does not support reading and writing imaging data,
or when such support is not needed in the first place.
Trait Implementations§
Source§impl Clone for NeverPixelAdapter
impl Clone for NeverPixelAdapter
Source§fn clone(&self) -> NeverPixelAdapter
fn clone(&self) -> NeverPixelAdapter
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 NeverPixelAdapter
impl Debug for NeverPixelAdapter
Source§impl Hash for NeverPixelAdapter
impl Hash for NeverPixelAdapter
Source§impl Ord for NeverPixelAdapter
impl Ord for NeverPixelAdapter
Source§fn cmp(&self, other: &NeverPixelAdapter) -> Ordering
fn cmp(&self, other: &NeverPixelAdapter) -> 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 for NeverPixelAdapter
impl PartialEq for NeverPixelAdapter
Source§impl PartialOrd for NeverPixelAdapter
impl PartialOrd for NeverPixelAdapter
Source§impl PixelDataReader for NeverPixelAdapter
impl PixelDataReader for NeverPixelAdapter
Source§fn decode(
&self,
_src: &dyn PixelDataObject,
_dst: &mut Vec<u8>,
) -> DecodeResult<()>
fn decode( &self, _src: &dyn PixelDataObject, _dst: &mut Vec<u8>, ) -> DecodeResult<()>
Decode the given DICOM object
containing encapsulated pixel data
into native pixel data as a byte stream in little endian,
appending these bytes to the given vector
dst
. Read moreSource§fn decode_frame(
&self,
_src: &dyn PixelDataObject,
_frame: u32,
_dst: &mut Vec<u8>,
) -> DecodeResult<()>
fn decode_frame( &self, _src: &dyn PixelDataObject, _frame: u32, _dst: &mut Vec<u8>, ) -> DecodeResult<()>
Decode the given DICOM object
containing encapsulated pixel data
into native pixel data of a single frame
as a byte stream in little endian,
appending these bytes to the given vector
dst
. Read moreSource§impl PixelDataWriter for NeverPixelAdapter
impl PixelDataWriter for NeverPixelAdapter
Source§fn encode(
&self,
_src: &dyn PixelDataObject,
_options: EncodeOptions,
_dst: &mut Vec<Vec<u8>>,
_offset_table: &mut Vec<u32>,
) -> EncodeResult<Vec<AttributeOp>>
fn encode( &self, _src: &dyn PixelDataObject, _options: EncodeOptions, _dst: &mut Vec<Vec<u8>>, _offset_table: &mut Vec<u32>, ) -> EncodeResult<Vec<AttributeOp>>
Encode a DICOM object’s image into the format supported by this adapter,
writing a byte stream of pixel data fragment values
to the given vector
dst
and the offsets to each decoded frame into offset_table
. Read moreSource§fn encode_frame(
&self,
_src: &dyn PixelDataObject,
_frame: u32,
_options: EncodeOptions,
_dst: &mut Vec<u8>,
) -> EncodeResult<Vec<AttributeOp>>
fn encode_frame( &self, _src: &dyn PixelDataObject, _frame: u32, _options: EncodeOptions, _dst: &mut Vec<u8>, ) -> EncodeResult<Vec<AttributeOp>>
Encode a single frame of a DICOM object’s image
into the format supported by this adapter,
by writing a byte stream of pixel data values
into the given destination.
The bytes written comprise a single pixel data fragment
in its entirety. Read more
impl Copy for NeverPixelAdapter
impl Eq for NeverPixelAdapter
impl StructuralPartialEq for NeverPixelAdapter
Auto Trait Implementations§
impl Freeze for NeverPixelAdapter
impl RefUnwindSafe for NeverPixelAdapter
impl Send for NeverPixelAdapter
impl Sync for NeverPixelAdapter
impl Unpin for NeverPixelAdapter
impl UnwindSafe for NeverPixelAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more