[−][src]Struct memur::List
Append-only list
Implementations
impl<T> List<T> where
T: Sized,
[src]
T: Sized,
pub fn new(arena: &Arena) -> Result<List<T>, UploadError>
[src]
Initializes a new list in arena and returns a handle to it.
pub fn len(&self) -> u32
[src]
pub fn iter(&self) -> impl ExactSizeIterator<Item = &T>
[src]
Iterates over the item references in arena, returns no items if the arena is dead.
pub fn safer_iter(&self) -> Option<impl ExactSizeIterator<Item = &T>>
[src]
Iterates over the item references in arena if the arena is alive.
pub fn iter_mut(&mut self) -> impl ExactSizeIterator<Item = &mut T>
[src]
Iterates over the mutable item references in arena, returns no items if the arena is dead.
pub fn safer_iter_mut(
&mut self
) -> Option<impl ExactSizeIterator<Item = &mut T>>
[src]
&mut self
) -> Option<impl ExactSizeIterator<Item = &mut T>>
Iterates over the mutable item references in arena if the arena is alive.
pub fn push(&mut self, item: T) -> Result<(), UploadError>
[src]
Appends a new item to list if the arena is alive.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for List<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for List<T>
impl<T> !Sync for List<T>
impl<T> Unpin for List<T>
impl<T> UnwindSafe for List<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,