We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaf265 commit 35ab437Copy full SHA for 35ab437
Cargo.toml
@@ -2,7 +2,7 @@
2
name = "byteview"
3
description = "Thin, immutable zero-copy slice type"
4
license = "MIT OR Apache-2.0"
5
-version = "0.4.1"
+version = "0.5.0"
6
edition = "2021"
7
rust-version = "1.74"
8
readme = "README.md"
src/strview.rs
@@ -23,6 +23,12 @@ unsafe impl Send for StrView {}
23
#[allow(clippy::non_send_fields_in_send_ty)]
24
unsafe impl Sync for StrView {}
25
26
+impl std::fmt::Display for StrView {
27
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
28
+ write!(f, "{}", &**self)
29
+ }
30
+}
31
+
32
impl std::fmt::Debug for StrView {
33
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34
write!(f, "{:?}", &**self)
0 commit comments