#[non_exhaustive]
pub enum ModalityLutOption {
Default,
Override(Rescale),
None,
}
Expand description
Modality LUT function specifier.
See also ConvertOptions
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Default
Default behavior: rescale the pixel data values as described in the decoded pixel data.
Override(Rescale)
Rescale the pixel data values according to the given rescale parameters
None
Do not rescale nor transform the pixel data value samples.
This also overrides any option to apply VOI LUT transformations
in the decoded pixel data conversion methods.
To assume the identity function for rescaling
and apply the VOI LUT transformations as normal,
use the Override
variant instead.
Trait Implementations
sourceimpl Clone for ModalityLutOption
impl Clone for ModalityLutOption
sourcefn clone(&self) -> ModalityLutOption
fn clone(&self) -> ModalityLutOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModalityLutOption
impl Debug for ModalityLutOption
sourceimpl Default for ModalityLutOption
impl Default for ModalityLutOption
sourceimpl PartialEq<ModalityLutOption> for ModalityLutOption
impl PartialEq<ModalityLutOption> for ModalityLutOption
sourcefn eq(&self, other: &ModalityLutOption) -> bool
fn eq(&self, other: &ModalityLutOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModalityLutOption) -> bool
fn ne(&self, other: &ModalityLutOption) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModalityLutOption
Auto Trait Implementations
impl RefUnwindSafe for ModalityLutOption
impl Send for ModalityLutOption
impl Sync for ModalityLutOption
impl Unpin for ModalityLutOption
impl UnwindSafe for ModalityLutOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more