pub enum ValueSetPolicy {
ReplaceAll,
Append,
Prepend,
InsertAt(usize),
}Expand description
Policy for BLSEntry::set when the key allows multiple values (e.g. initrd, options, grub_class).
Variants§
ReplaceAll
Replace all existing values with this one.
Append
Append after existing values.
Prepend
Insert at the beginning.
InsertAt(usize)
Insert at the given index; may panic if index is out of bounds (see Vec::insert).
Trait Implementations§
Source§impl Debug for ValueSetPolicy
impl Debug for ValueSetPolicy
Source§impl PartialEq for ValueSetPolicy
impl PartialEq for ValueSetPolicy
impl StructuralPartialEq for ValueSetPolicy
Auto Trait Implementations§
impl Freeze for ValueSetPolicy
impl RefUnwindSafe for ValueSetPolicy
impl Send for ValueSetPolicy
impl Sync for ValueSetPolicy
impl Unpin for ValueSetPolicy
impl UnsafeUnpin for ValueSetPolicy
impl UnwindSafe for ValueSetPolicy
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