pub enum ItemPlacement {
    InsertBeforeIndex(u32),
    InsertAfterIndex(u32),
    ReplaceItemAtIndex(u32),
}
Expand description

Describes how a new item should be placed relative to existing items in an array.

IMPORTANT: Indices in XMP are 1-based, unlike Rust where indices are typically 0-based.

Use with XmpMeta::set_array_item.

Variants

InsertBeforeIndex(u32)

Insert before the item at the specified index.

InsertAfterIndex(u32)

Insert after the item at the specified index.

ReplaceItemAtIndex(u32)

Replace the item currently at the specified index.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.