Struct capnp::struct_list::Builder [−][src]
pub struct Builder<'a, T> where
T: for<'b> OwnedStruct<'b>, { /* fields omitted */ }
Implementations
pub fn set_with_caveats<'b>(
&self,
index: u32,
value: <T as OwnedStruct<'b>>::Reader
) -> Result<()> where
<T as OwnedStruct<'b>>::Reader: IntoInternalStructReader<'b>,
pub fn set_with_caveats<'b>(
&self,
index: u32,
value: <T as OwnedStruct<'b>>::Reader
) -> Result<()> where
<T as OwnedStruct<'b>>::Reader: IntoInternalStructReader<'b>,
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.