[−][src]Struct dicom_parser::stateful::decode::StatefulDecoder
A stateful abstraction for the full DICOM content reading process.
This type encapsulates the necessary codecs in order
to be as autonomous as possible in the DICOM content reading
process.
S
is the generic parameter type for the original source,
D
is the parameter type that the decoder interprets as,
whereas DB
is the parameter type for the basic decoder.
TC
defines the text codec used underneath.
Implementations
impl<'s> StatefulDecoder<Box<dyn DecodeFrom<dyn Read + 's> + 'static>, BasicDecoder, Box<dyn Read + 's>, Box<dyn TextCodec + 'static>>
[src]
pub fn new_with<S: 's>(
from: S,
ts: &TransferSyntax,
charset: SpecificCharacterSet
) -> Result<Self> where
S: Read,
[src]
from: S,
ts: &TransferSyntax,
charset: SpecificCharacterSet
) -> Result<Self> where
S: Read,
Create a new DICOM parser for the given transfer syntax and character set.
impl<S> StatefulDecoder<ExplicitVRLittleEndianDecoder, LittleEndianBasicDecoder, S, DefaultCharacterSetCodec> where
S: Read,
[src]
S: Read,
pub fn file_header_parser(from: S) -> Self
[src]
Create a new DICOM stateful decoder for reading the file meta header, which is always in Explicit VR Little Endian.
impl<D, BD, S, TC> StatefulDecoder<D, BD, S, TC>
[src]
pub fn new(
from: S,
decoder: D,
basic: BD,
text: TC
) -> StatefulDecoder<D, BD, S, TC>
[src]
from: S,
decoder: D,
basic: BD,
text: TC
) -> StatefulDecoder<D, BD, S, TC>
Create a new DICOM stateful decoder from its parts.
Trait Implementations
impl<D: Debug, BD: Debug, S: Debug, TC: Debug> Debug for StatefulDecoder<D, BD, S, TC>
[src]
impl<S, T: ?Sized, D, BD> StatefulDecode for StatefulDecoder<D, BD, S, DynamicTextCodec> where
D: DecodeFrom<T>,
BD: BasicDecode,
S: DerefMut<Target = T> + Read,
T: Read,
[src]
D: DecodeFrom<T>,
BD: BasicDecode,
S: DerefMut<Target = T> + Read,
T: Read,
type Reader = S
fn decode_header(&mut self) -> Result<DataElementHeader>
[src]
fn decode_item_header(&mut self) -> Result<SequenceItemHeader>
[src]
fn read_value(&mut self, header: &DataElementHeader) -> Result<PrimitiveValue>
[src]
fn read_value_preserved(
&mut self,
header: &DataElementHeader
) -> Result<PrimitiveValue>
[src]
&mut self,
header: &DataElementHeader
) -> Result<PrimitiveValue>
fn read_value_bytes(
&mut self,
header: &DataElementHeader
) -> Result<PrimitiveValue>
[src]
&mut self,
header: &DataElementHeader
) -> Result<PrimitiveValue>
fn value_reader(
&mut self,
header: &DataElementHeader
) -> Result<Take<&mut Self::Reader>>
[src]
&mut self,
header: &DataElementHeader
) -> Result<Take<&mut Self::Reader>>
Obtain a reader which outlines the primitive value data from the given source.
fn read_bytes(&mut self, buf: &mut [u8]) -> Result<()>
[src]
fn bytes_read(&self) -> u64
[src]
Auto Trait Implementations
impl<D, BD, S, TC> RefUnwindSafe for StatefulDecoder<D, BD, S, TC> where
BD: RefUnwindSafe,
D: RefUnwindSafe,
S: RefUnwindSafe,
TC: RefUnwindSafe,
BD: RefUnwindSafe,
D: RefUnwindSafe,
S: RefUnwindSafe,
TC: RefUnwindSafe,
impl<D, BD, S, TC> Send for StatefulDecoder<D, BD, S, TC> where
BD: Send,
D: Send,
S: Send,
TC: Send,
BD: Send,
D: Send,
S: Send,
TC: Send,
impl<D, BD, S, TC> Sync for StatefulDecoder<D, BD, S, TC> where
BD: Sync,
D: Sync,
S: Sync,
TC: Sync,
BD: Sync,
D: Sync,
S: Sync,
TC: Sync,
impl<D, BD, S, TC> Unpin for StatefulDecoder<D, BD, S, TC> where
BD: Unpin,
D: Unpin,
S: Unpin,
TC: Unpin,
BD: Unpin,
D: Unpin,
S: Unpin,
TC: Unpin,
impl<D, BD, S, TC> UnwindSafe for StatefulDecoder<D, BD, S, TC> where
BD: UnwindSafe,
D: UnwindSafe,
S: UnwindSafe,
TC: UnwindSafe,
BD: UnwindSafe,
D: UnwindSafe,
S: UnwindSafe,
TC: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,