[][src]Struct capnp::struct_list::Builder

pub struct Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
{ /* fields omitted */ }

Methods

impl<'a, T> Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

pub fn new(builder: ListBuilder<'a>) -> Builder<'a, T>[src]

pub fn len(&self) -> u32[src]

pub fn as_reader(self) -> Reader<'a, T>[src]

Deprecated since 0.9.2:

use into_reader()

pub fn into_reader(self) -> Reader<'a, T>[src]

pub fn set_with_caveats<'b>(
    &self,
    index: u32,
    value: <T as OwnedStruct<'b>>::Reader
) -> Result<()> where
    <T as OwnedStruct<'b>>::Reader: IntoInternalStructReader<'b>, 
[src]

Sets the list element, with the following limitation based on the fact that structs in a struct list are allocated inline: if the source struct is larger than the target struct (as can happen if it was created with a newer version of the schema), then it will be truncated, losing fields.

impl<'a, T> Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

pub fn reborrow<'b>(&'b mut self) -> Builder<'b, T>[src]

impl<'a, T> Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

pub fn get(self, index: u32) -> <T as OwnedStruct<'a>>::Builder[src]

Trait Implementations

impl<'a, T> FromPointerBuilder<'a> for Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

impl<'a, T> FromPointerBuilderRefDefault<'a> for Builder<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

impl<'a, T> SetPointerBuilder<Builder<'a, T>> for Reader<'a, T> where
    T: for<'b> OwnedStruct<'b>, 
[src]

Auto Trait Implementations

impl<'a, T> !Send for Builder<'a, T>

impl<'a, T> !Sync for Builder<'a, T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.