Skip to content

Commit

Permalink
doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Mar 29, 2024
1 parent 20b1bfe commit b4f69ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion capnp/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
//! where each message is preceded by a segment table indicating the size of its segments.
pub(crate) mod no_alloc_buffer_segments;
pub use no_alloc_buffer_segments::{NoAllocBufferSegments, NoAllocSliceSegments};
pub use no_alloc_buffer_segments::{
NoAllocBufferSegments, NoAllocSegmentTableInfo, NoAllocSliceSegments,
};

use crate::io::{Read, Write};

Expand Down
6 changes: 3 additions & 3 deletions capnp/src/serialize/no_alloc_buffer_segments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ pub struct NoAllocBufferSegments<T> {
}

impl<T> NoAllocBufferSegments<T> {
/// Constructs a NoAllocBufferSegments from a buffer and a `NoAllocSegmentTableInfo`.
/// This method is used internally by `NoAllocBufferSegments::from_slice()`
/// and `NoAllocBufferSegments::from_buffer()`. It has been made public to allow for
/// Constructs a NoAllocBufferSegments from a buffer and a [`NoAllocSegmentTableInfo`].
/// This method is used internally by [`NoAllocBufferSegments::from_slice()`]
/// and [`NoAllocBufferSegments::from_buffer()`]. It has been made public to allow for
/// situations where the segment table is read by nonstandard means.
pub fn from_segment_table_info(buffer: T, info: NoAllocSegmentTableInfo) -> Self {
if info.segments_count == 1 {
Expand Down

0 comments on commit b4f69ff

Please sign in to comment.