pub struct PokeList<'mem> { /* private fields */ }Expand description
Allows poking a list (appending, etc.)
Implementations§
Source§impl<'mem> PokeList<'mem>
impl<'mem> PokeList<'mem>
Sourcepub unsafe fn push(&mut self, item: Opaque<'_>)
pub unsafe fn push(&mut self, item: Opaque<'_>)
Pushes an item to the list
§Safety
item is moved out of (with core::ptr::read) — it should be deallocated
afterwards but NOT dropped.
Sourcepub fn get_item_ptr(&self, index: usize) -> OpaqueConst<'_>
pub fn get_item_ptr(&self, index: usize) -> OpaqueConst<'_>
Sourcepub fn build_in_place(self) -> Opaque<'mem>
pub fn build_in_place(self) -> Opaque<'mem>
Takes ownership of this PokeList and returns the underlying data.
Auto Trait Implementations§
impl<'mem> Freeze for PokeList<'mem>
impl<'mem> RefUnwindSafe for PokeList<'mem>
impl<'mem> !Send for PokeList<'mem>
impl<'mem> !Sync for PokeList<'mem>
impl<'mem> Unpin for PokeList<'mem>
impl<'mem> !UnwindSafe for PokeList<'mem>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more