FileMetaAttribute

Struct FileMetaAttribute 

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DicomAttribute for FileMetaAttribute<'_>

Source§

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

The data type of a single contiguous pixel data fragment
Source§

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>

Obtain the attribute’s value as a string, converting it if necessary.
Source§

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>

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>

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>

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>

Obtain the attribute’s value as a 16-bit unsigned integer, converting it if necessary.
Source§

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>

Obtain the attribute’s value as a 32-bit unsigned integer, converting it if necessary.
Source§

fn to_f32(&self) -> Result<f32, AttributeError>

Obtain the attribute’s value as a 32-bit floating-point number, converting it if necessary.
Source§

fn to_f64(&self) -> Result<f64, AttributeError>

Obtain the attribute’s value as a 64-bit floating-point number, converting it if necessary.
Source§

fn to_bytes(&self) -> Result<Cow<'_, [u8]>, AttributeError>

Obtain the attribute’s value as bytes, converting it if necessary.
Source§

impl DicomValueType for FileMetaAttribute<'_>

Source§

fn value_type(&self) -> ValueType

Retrieve the specific type of this value.
Source§

fn cardinality(&self) -> usize

Retrieve the number of elements contained in the DICOM value. Read more
Source§

impl HasLength for FileMetaAttribute<'_>

Source§

fn length(&self) -> Length

Retrieve the value data’s length as specified by the data element or item, in bytes. Read more
Source§

fn is_empty(&self) -> bool

Check whether the value is empty (0 length).

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more