Sign in
fuchsia
/
third_party
/
github.com
/
petgraph
/
petgraph
/
16f08b42632a087683a46f0487a37f040abec33c
/
.
/
crates
/
dino
/
src
/
slab
/
key.rs
blob: 287551cc6de5ca0953d81c296494f2cf95c214e1 [
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
;
}