pub struct FileMetaAttribute<'a> { /* private fields */ }
Expand description
An attribute selector for a file meta information table.
Trait Implementations§
Source§impl<'a> Debug for FileMetaAttribute<'a>
impl<'a> Debug for FileMetaAttribute<'a>
Source§impl DicomAttribute for FileMetaAttribute<'_>
impl DicomAttribute for FileMetaAttribute<'_>
Source§type Item<'b> = EmptyObject
where
Self: 'b
type Item<'b> = EmptyObject where Self: 'b
The data type of an item in a data set sequence
Source§type PixelData<'b> = Vec<u8>
where
Self: 'b
type PixelData<'b> = Vec<u8> where Self: 'b
The data type of a single contiguous pixel data fragment
Source§fn to_primitive_value(&self) -> Result<PrimitiveValue, AttributeError>
fn to_primitive_value(&self) -> Result<PrimitiveValue, AttributeError>
Obtain an in-memory representation of the primitive value,
cloning the value if necessary. Read more
Source§fn to_str(&self) -> Result<Cow<'_, str>, AttributeError>
fn to_str(&self) -> Result<Cow<'_, str>, AttributeError>
Obtain the attribute’s value as a string,
converting it if necessary.
Source§fn item(&self, _index: u32) -> Result<Self::Item<'_>, AttributeError>
fn item(&self, _index: u32) -> Result<Self::Item<'_>, AttributeError>
Obtain one of the items in the attribute,
if the attribute value represents a data set sequence. Read more
Source§fn num_items(&self) -> Option<u32>
fn num_items(&self) -> Option<u32>
Obtain the number of data set items or pixel data fragments,
if the attribute value represents a data set sequence or pixel data.
Returns
None
otherwise.Source§fn fragment(&self, _index: u32) -> Result<Self::PixelData<'_>, AttributeError>
fn fragment(&self, _index: u32) -> Result<Self::PixelData<'_>, AttributeError>
Obtain one of the fragments in the attribute,
if the attribute value represents a pixel data fragment sequence. Read more
Source§fn num_fragments(&self) -> Option<u32>
fn num_fragments(&self) -> Option<u32>
Obtain the number of pixel data fragments,
if the attribute value represents encapsulated pixel data. Read more
Source§fn to_u16(&self) -> Result<u16, AttributeError>
fn to_u16(&self) -> Result<u16, AttributeError>
Obtain the attribute’s value as a 16-bit unsigned integer,
converting it if necessary.
Source§fn to_i32(&self) -> Result<i32, AttributeError>
fn to_i32(&self) -> Result<i32, AttributeError>
Obtain the attribute’s value as a 32-bit signed integer,
converting it if necessary.
Source§fn to_u32(&self) -> Result<u32, AttributeError>
fn to_u32(&self) -> Result<u32, AttributeError>
Obtain the attribute’s value as a 32-bit unsigned integer,
converting it if necessary.
Source§fn to_f32(&self) -> Result<f32, AttributeError>
fn to_f32(&self) -> Result<f32, AttributeError>
Obtain the attribute’s value as a 32-bit floating-point number,
converting it if necessary.
Source§impl DicomValueType for FileMetaAttribute<'_>
impl DicomValueType for FileMetaAttribute<'_>
Source§fn value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Retrieve the specific type of this value.
Source§fn cardinality(&self) -> usize
fn cardinality(&self) -> usize
Retrieve the number of elements contained in the DICOM value. Read more
Auto Trait Implementations§
impl<'a> Freeze for FileMetaAttribute<'a>
impl<'a> RefUnwindSafe for FileMetaAttribute<'a>
impl<'a> Send for FileMetaAttribute<'a>
impl<'a> Sync for FileMetaAttribute<'a>
impl<'a> Unpin for FileMetaAttribute<'a>
impl<'a> UnwindSafe for FileMetaAttribute<'a>
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