Skip to content

Commit 9ff7cf1

Browse files
authored
Merge pull request #20 from rdaum/main
Provide From<ByteView> for Slice construction
2 parents 0cd27e9 + a11cb40 commit 9ff7cf1

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
@@ -56,3 +56,9 @@ impl From<String> for Slice {
5656
Self(ByteView::from(value.into_bytes()))
5757
}
5858
}
59+
60+
impl From<ByteView> for Slice {
61+
fn from(value: ByteView) -> Self {
62+
Self(value)
63+
}
64+
}

0 commit comments

Comments
 (0)