Struct capnp::any_pointer_list::Builder
source · [−]pub struct Builder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn len(&self) -> u32
pub fn into_reader(self) -> Reader<'a>
sourcepub fn get(self, index: u32) -> Builder<'a>
pub fn get(self, index: u32) -> Builder<'a>
Gets the element at position index
. Panics if index
is greater than or
equal to len()
.
sourcepub fn try_get(self, index: u32) -> Option<Builder<'a>>
pub fn try_get(self, index: u32) -> Option<Builder<'a>>
Gets the element at position index
. Returns None
if index
is greater than or equal to len()
.
pub fn reborrow<'b>(&'b mut self) -> Builder<'b>
Trait Implementations
sourceimpl<'a> FromPointerBuilder<'a> for Builder<'a>
impl<'a> FromPointerBuilder<'a> for Builder<'a>
fn init_pointer(builder: PointerBuilder<'a>, size: u32) -> Builder<'a>
fn get_from_pointer(
builder: PointerBuilder<'a>,
default: Option<&'a [Word]>
) -> Result<Builder<'a>>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> !Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more