Struct nifti::extension::Extension[][src]

pub struct Extension { /* fields omitted */ }

Data type for the raw contents of an extension. Users of this type have to reinterpret the data to suit their needs.

Methods

impl Extension
[src]

Create an extension out of its main components.

Panics

If esize does not correspond to the full size of the extension in bytes: 8 + edata.len()

Obtain the claimed extension raw size (esize field).

Obtain the extension's code (ecode field).

Obtain the extension's data (edata field).

Take the extension's raw data, discarding the rest.

Trait Implementations

impl Debug for Extension
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Extension
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Extension
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Extension

impl Sync for Extension