Struct capnp::primitive_list::Builder
source · pub struct Builder<'a, T>where
T: PrimitiveElement,{ /* private fields */ }
Implementations§
source§impl<'a, T> Builder<'a, T>where
T: PrimitiveElement,
impl<'a, T> Builder<'a, T>where
T: PrimitiveElement,
source§impl<'a, T: PrimitiveElement> Builder<'a, T>
impl<'a, T: PrimitiveElement> Builder<'a, T>
sourcepub fn get(&self, index: u32) -> T
pub fn get(&self, index: u32) -> T
Gets the T
at position index
. Panics if index
is greater than or
equal to len()
.
sourcepub fn try_get(&self, index: u32) -> Option<T>
pub fn try_get(&self, index: u32) -> Option<T>
Gets the T
at position index
. Returns None
if index
is greater than or equal to len()
.