Enum xmp_toolkit::ItemPlacement
source · 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§
impl Freeze for ItemPlacement
impl RefUnwindSafe for ItemPlacement
impl Send for ItemPlacement
impl Sync for ItemPlacement
impl Unpin for ItemPlacement
impl UnwindSafe for ItemPlacement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more