Skip to content

Commit 02abbcf

Browse files
committed
doc
1 parent 04aea1a commit 02abbcf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/slice/slice_bytes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use bytes::{Bytes, BytesMut};
66

77
/// An immutable byte slice that can be cloned without additional heap allocation
8+
///
9+
/// There is no guarantee of any sort of alignment for zero-copy (de)serialization.
810
#[derive(Debug, Clone, Eq, Hash, Ord)]
911
pub struct Slice(pub(super) Bytes);
1012

src/slice/slice_default.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use byteview::ByteView;
66

77
/// An immutable byte slice that can be cloned without additional heap allocation
8+
///
9+
/// There is no guarantee of any sort of alignment for zero-copy (de)serialization.
810
#[derive(Debug, Clone, Eq, Hash, Ord)]
911
pub struct Slice(pub(super) ByteView);
1012

0 commit comments

Comments
 (0)