Skip to main content

Header

Trait Header 

Source
pub trait Header: HasLength {
    // Required method
    fn tag(&self) -> Tag;

    // Provided methods
    fn is_item(&self) -> bool { ... }
    fn is_item_delimiter(&self) -> bool { ... }
    fn is_sequence_delimiter(&self) -> bool { ... }
    fn is_encapsulated_pixeldata(&self) -> bool { ... }
}
Expand description

A trait for a data type containing a DICOM header.

Required Methods§

Source

fn tag(&self) -> Tag

Retrieve the element’s tag as a (group, element) tuple.

Provided Methods§

Source

fn is_item(&self) -> bool

Check whether this is the header of an item.

Source

fn is_item_delimiter(&self) -> bool

Check whether this is the header of an item delimiter.

Source

fn is_sequence_delimiter(&self) -> bool

Check whether this is the header of a sequence delimiter.

Source

fn is_encapsulated_pixeldata(&self) -> bool

Check whether this is the header of an encapsulated pixel data.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§