Skip to content

Commit

Permalink
Merge pull request #21 from rdaum/main
Browse files Browse the repository at this point in the history
Add From<Slice> for ByteView
  • Loading branch information
marvin-j97 authored Feb 12, 2025
2 parents 86a50a8 + 6eb973e commit 77f5705
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/slice/slice_default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ impl From<ByteView> for Slice {
Self(value)
}
}

impl From<Slice> for ByteView {
fn from(value: Slice) -> Self {
value.0
}
}

0 comments on commit 77f5705

Please sign in to comment.