pub struct DuplicateKey {
pub key: String,
pub first: usize,
pub second: usize,
}Expand description
One repeated mapping key. The later line wins.
Fields§
§key: String§first: usizeLine of the earlier occurrence.
second: usizeLine of the later occurrence, whose value is kept.
Trait Implementations§
Source§impl Clone for DuplicateKey
impl Clone for DuplicateKey
Source§impl Debug for DuplicateKey
impl Debug for DuplicateKey
impl Eq for DuplicateKey
Source§impl PartialEq for DuplicateKey
impl PartialEq for DuplicateKey
impl StructuralPartialEq for DuplicateKey
Auto Trait Implementations§
impl Freeze for DuplicateKey
impl RefUnwindSafe for DuplicateKey
impl Send for DuplicateKey
impl Sync for DuplicateKey
impl Unpin for DuplicateKey
impl UnsafeUnpin for DuplicateKey
impl UnwindSafe for DuplicateKey
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