#[repr(u8)]pub enum DuplicateKeyPolicy {
Reject = 0,
LastWins = 1,
}Expand description
Resolution policy for a repeated key in a repeatable-map option.
Variants§
Reject = 0
A repeated key is a usage error.
LastWins = 1
A repeated key takes the last supplied value.
Trait Implementations§
Source§impl Clone for DuplicateKeyPolicy
impl Clone for DuplicateKeyPolicy
Source§fn clone(&self) -> DuplicateKeyPolicy
fn clone(&self) -> DuplicateKeyPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DuplicateKeyPolicy
Source§impl Debug for DuplicateKeyPolicy
impl Debug for DuplicateKeyPolicy
impl Eq for DuplicateKeyPolicy
Source§impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
Source§fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
Converts to this type from the input type.
Source§impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
Source§fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
Converts to this type from the input type.
Source§impl Ord for DuplicateKeyPolicy
impl Ord for DuplicateKeyPolicy
Source§fn cmp(&self, other: &DuplicateKeyPolicy) -> Ordering
fn cmp(&self, other: &DuplicateKeyPolicy) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DuplicateKeyPolicy
impl PartialEq for DuplicateKeyPolicy
Source§impl PartialOrd for DuplicateKeyPolicy
impl PartialOrd for DuplicateKeyPolicy
impl StructuralPartialEq for DuplicateKeyPolicy
Auto Trait Implementations§
impl Freeze for DuplicateKeyPolicy
impl RefUnwindSafe for DuplicateKeyPolicy
impl Send for DuplicateKeyPolicy
impl Sync for DuplicateKeyPolicy
impl Unpin for DuplicateKeyPolicy
impl UnsafeUnpin for DuplicateKeyPolicy
impl UnwindSafe for DuplicateKeyPolicy
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