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