[−][src]Struct dicom_parser::parser::DicomParser
A data structure for parsing DICOM data.
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's type,
D
is the parameter type that the decoder interprets as,
whereas DB
is the parameter type for the basic decoder.
TextCodec
defines the text codec used underneath.
Methods
impl<D, BD, S: ?Sized, TC> DicomParser<D, BD, S, TC> where
D: Decode<Source = S>,
BD: BasicDecode,
S: Read,
TC: TextCodec,
[src]
D: Decode<Source = S>,
BD: BasicDecode,
S: Read,
TC: TextCodec,
pub fn new(decoder: D, basic: BD, text: TC) -> DicomParser<D, BD, S, TC>
[src]
Create a new DICOM parser from its parts.
Trait Implementations
impl<S: ?Sized, D, BD> Parse<S> for DicomParser<D, BD, S, Box<dyn TextCodec>> where
D: Decode<Source = S>,
BD: BasicDecode,
S: Read,
[src]
D: Decode<Source = S>,
BD: BasicDecode,
S: Read,
fn decode_header(&mut self, from: &mut S) -> Result<DataElementHeader>
[src]
fn decode_item_header(&mut self, from: &mut S) -> Result<SequenceItemHeader>
[src]
fn read_value(
&mut self,
from: &mut S,
header: &DataElementHeader
) -> Result<PrimitiveValue>
[src]
&mut self,
from: &mut S,
header: &DataElementHeader
) -> Result<PrimitiveValue>
fn read_value_preserved(
&mut self,
from: &mut S,
header: &DataElementHeader
) -> Result<PrimitiveValue>
[src]
&mut self,
from: &mut S,
header: &DataElementHeader
) -> Result<PrimitiveValue>
fn set_character_set(&mut self, charset: SpecificCharacterSet) -> Result<()>
[src]
impl<S: ?Sized, D, BD, TC> Debug for DicomParser<D, BD, S, TC> where
D: Debug,
BD: Debug,
TC: Debug,
[src]
D: Debug,
BD: Debug,
TC: Debug,
Auto Trait Implementations
impl<D, BD, S: ?Sized, TC> Send for DicomParser<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: ?Sized, TC> Unpin for DicomParser<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: ?Sized, TC> Sync for DicomParser<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: ?Sized, TC> UnwindSafe for DicomParser<D, BD, S, TC> where
BD: UnwindSafe,
D: UnwindSafe,
S: UnwindSafe,
TC: UnwindSafe,
BD: UnwindSafe,
D: UnwindSafe,
S: UnwindSafe,
TC: UnwindSafe,
impl<D, BD, S: ?Sized, TC> RefUnwindSafe for DicomParser<D, BD, S, TC> where
BD: RefUnwindSafe,
D: RefUnwindSafe,
S: RefUnwindSafe,
TC: RefUnwindSafe,
BD: RefUnwindSafe,
D: RefUnwindSafe,
S: RefUnwindSafe,
TC: RefUnwindSafe,
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,