#[non_exhaustive]pub enum Duplicates {
First,
Last,
}Expand description
Which participating duplicate declaration wins lookup.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for Duplicates
impl Clone for Duplicates
impl Copy for Duplicates
Source§impl Debug for Duplicates
impl Debug for Duplicates
impl Eq for Duplicates
Source§impl Hash for Duplicates
impl Hash for Duplicates
Source§impl PartialEq for Duplicates
impl PartialEq for Duplicates
impl StructuralPartialEq for Duplicates
Auto Trait Implementations§
impl Freeze for Duplicates
impl RefUnwindSafe for Duplicates
impl Send for Duplicates
impl Sync for Duplicates
impl Unpin for Duplicates
impl UnsafeUnpin for Duplicates
impl UnwindSafe for Duplicates
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