Sign in
fuchsia
/
third_party
/
github.com
/
petgraph
/
petgraph
/
ed47e71dcdcdde865affb7bac4e4c58194a96139
/
.
/
crates
/
dino
/
src
/
slab
/
key.rs
blob: 7d9a9e3a00955a199fdfcf110d7c3917bb44362c [
file
]
use
core
::{
fmt
::
Debug
,
hash
::
Hash
};
use
crate
::
slab
::
id
::
EntryId
;
pub
trait
Key
:
Debug
+
Copy
+
Clone
+
PartialEq
+
Eq
+
PartialOrd
+
Ord
+
Hash
{
fn
from_id
(
id
:
EntryId
)
->
Self
;
fn
into_id
(
self
)
->
EntryId
;
}