pub struct DataSetWriter<W, E, T = SpecificCharacterSet> { /* private fields */ }Expand description
A stateful device for printing a DICOM data set in sequential order.
This is analogous to the DatasetReader type for converting data
set tokens to bytes.
Implementations§
Source§impl<'w, W> DataSetWriter<W, DynEncoder<'w, W>>where
W: Write + 'w,
impl<'w, W> DataSetWriter<W, DynEncoder<'w, W>>where
W: Write + 'w,
Sourcepub fn with_ts(to: W, ts: &TransferSyntax) -> Result<Self>
pub fn with_ts(to: W, ts: &TransferSyntax) -> Result<Self>
Create a new data set writer with the given transfer syntax specifier.
Sourcepub fn with_ts_cs(
to: W,
ts: &TransferSyntax,
charset: SpecificCharacterSet,
) -> Result<Self>
pub fn with_ts_cs( to: W, ts: &TransferSyntax, charset: SpecificCharacterSet, ) -> Result<Self>
Create a new data set writer with the given transfer syntax specifier and the specific character set to assume by default.
Note that the data set being written can override the character set with the presence of a Specific Character Set data element.
Source§impl<W, E> DataSetWriter<W, E>
impl<W, E> DataSetWriter<W, E>
Source§impl<W, E, T> DataSetWriter<W, E, T>
impl<W, E, T> DataSetWriter<W, E, T>
pub fn new_with_codec(to: W, encoder: E, text: T) -> Self
Source§impl<W, E> DataSetWriter<W, E>
impl<W, E> DataSetWriter<W, E>
Trait Implementations§
Auto Trait Implementations§
impl<W, E, T> Freeze for DataSetWriter<W, E, T>
impl<W, E, T> RefUnwindSafe for DataSetWriter<W, E, T>
impl<W, E, T> Send for DataSetWriter<W, E, T>
impl<W, E, T> Sync for DataSetWriter<W, E, T>
impl<W, E, T> Unpin for DataSetWriter<W, E, T>
impl<W, E, T> UnwindSafe for DataSetWriter<W, E, T>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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