pub enum ValueSetPolicy {
ReplaceAll,
Append,
Prepend,
InsertAt(usize),
}
Expand description
This enum is used as an argument in the BLSEntry::set()
method.
Some keys like initrd
can be specified multiple times in a BLS entry file.
Variants§
ReplaceAll
This replaces all existing values for the given key
Append
This appends a value to the last position in the BLSEntry
Prepend
This inserts a value in the first position in the BLSEntry
InsertAt(usize)
This inserts a value in the given index. Note that his may cause a panic as per std::vec::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 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