Struct openexr::core::channel_list::ChannelList[][src]

#[repr(transparent)]
pub struct ChannelList(_);

Implementations

Create a Default channel list

Insert a channel

Get a reference to a channel by name.

Returns

  • Some(&Channel) - if the channel called name exists
  • None - otherwise

Get a mutable reference to a channel by name.

Returns

  • Some(&Channel) - if the channel called name exists
  • None - otherwise

Get an iterator over the channels in the channel list

Layers

In an image file with many channels it is sometimes useful to group the channels into “layers”, that is, into sets of channels that logically belong together. Grouping channels into layers is done using a naming convention: channel C in layer L is called “L.C”.

For example, a computer graphic image may contain separate R, G and B channels for light that originated at each of several different virtual light sources. The channels in this image might be called “light1.R”, “light1.G”, “light1.B”, “light2.R”, “light2.G”, “light2.B”, etc.

Note that this naming convention allows layers to be nested; for example, “light1.specular.R” identifies the “R” channel in the “specular” sub-layer of layer “light1”.

Channel names that don’t contain a “.” or that contain a “.” only at the beginning or at the end are not considered to be part of any layer.

Get the set of layers in the file.

Get an iterator over the channels belonging to a particular layer

Get an iterator over all channels whose name starts with prefix prefix

Trait Implementations

Returns the “default value” for a type. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.