[][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 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> 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>

impl<'a, T> Unpin for Builder<'a, T> where
    T: Unpin

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

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

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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