Skip to content

Commit 77f5705

Browse files
authored
Merge pull request #21 from rdaum/main
Add From<Slice> for ByteView
2 parents 86a50a8 + 6eb973e commit 77f5705

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/slice/slice_default.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ impl From<ByteView> for Slice {
6262
Self(value)
6363
}
6464
}
65+
66+
impl From<Slice> for ByteView {
67+
fn from(value: Slice) -> Self {
68+
value.0
69+
}
70+
}

0 commit comments

Comments
 (0)