pub struct Builder<'a, T> { /* private fields */ }
Implementations
sourceimpl<'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()
.
pub fn reborrow(&self) -> Builder<'_, T>
Trait Implementations
sourceimpl<'a, T: FromU16> FromPointerBuilder<'a> for Builder<'a, T>
impl<'a, T: FromU16> FromPointerBuilder<'a> for Builder<'a, T>
fn init_pointer(builder: PointerBuilder<'a>, size: u32) -> Builder<'a, T>
fn get_from_pointer(
builder: PointerBuilder<'a>,
default: Option<&'a [Word]>
) -> Result<Builder<'a, T>>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Builder<'a, T>
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,
impl<'a, T> !UnwindSafe for Builder<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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