Enum capnp::OutputSegments[][src]

pub enum OutputSegments<'a> {
    SingleSegment([&'a [u8]; 1]),
    MultiSegment(Vec<&'a [u8]>),
}
Expand description

Helper struct that allows MessageBuilder::get_segments_for_output() to avoid heap allocations in the single-segment case.

Variants

SingleSegment([&'a [u8]; 1])
MultiSegment(Vec<&'a [u8]>)

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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

Gets the number of segments.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.