Add more derived traits for Path (#163)
This commit is contained in:
parent
28459f868f
commit
b8d282db61
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
|||
use std::fmt;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub(crate) enum PathElement {
|
||||
Key(String),
|
||||
Index(u32),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Path(Vec<PathElement>);
|
||||
|
||||
impl Path {
|
||||
|
|
Loading…
Add table
Reference in a new issue