[][src]Trait capnp::message::ReaderSegments

pub trait ReaderSegments {
    fn get_segment<'a>(&'a self, idx: u32) -> Option<&'a [Word]>;

    fn len(&self) -> usize { ... }

An object that manages the buffers underlying a Cap'n Proto message reader.

Required methods

fn get_segment<'a>(&'a self, idx: u32) -> Option<&'a [Word]>

Gets the segment with index idx. Returns None if idx is out of range.

Loading content...

Provided methods

fn len(&self) -> usize

Gets the number of segments.

Loading content...

Implementations on Foreign Types

impl<'b> ReaderSegments for [&'b [Word]][src]

Loading content...


impl ReaderSegments for OwnedSegments[src]

impl<'a> ReaderSegments for SliceSegments<'a>[src]

impl<'b> ReaderSegments for SegmentArray<'b>[src]

impl<'s> ReaderSegments for OutputSegments<'s>[src]

fn len(&self) -> usize[src]

impl<A> ReaderSegments for Builder<A> where
    A: Allocator

Loading content...