[−][src]Struct capnp::struct_list::Builder
Methods
impl<'a, T> Builder<'a, T> where
T: for<'b> OwnedStruct<'b>,
[src]
T: for<'b> OwnedStruct<'b>,
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]
&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.
impl<'a, T> Builder<'a, T> where
T: for<'b> OwnedStruct<'b>,
[src]
T: for<'b> OwnedStruct<'b>,
impl<'a, T> Builder<'a, T> where
T: for<'b> OwnedStruct<'b>,
[src]
T: for<'b> OwnedStruct<'b>,
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]
T: for<'b> OwnedStruct<'b>,
fn init_pointer(builder: PointerBuilder<'a>, size: u32) -> Builder<'a, T>
[src]
fn get_from_pointer(
builder: PointerBuilder<'a>,
default: Option<&'a [Word]>
) -> Result<Builder<'a, T>>
[src]
builder: PointerBuilder<'a>,
default: Option<&'a [Word]>
) -> Result<Builder<'a, T>>
impl<'a, T> SetPointerBuilder<Builder<'a, T>> for Reader<'a, T> where
T: for<'b> OwnedStruct<'b>,
[src]
T: for<'b> OwnedStruct<'b>,
fn set_pointer_builder<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a, T>,
canonicalize: bool
) -> Result<()>
[src]
pointer: PointerBuilder<'b>,
value: Reader<'a, T>,
canonicalize: bool
) -> Result<()>
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,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,