Struct PrimitiveArena
Source pub struct PrimitiveArena<'f, P> { }
Expand description
Hands out packets from caller storage as &'f mut P, one slot each.
The storage is borrowed for 'f, so it cannot be reused (a new arena
over it, say) while any packet it handed out is still linked into a
frame.
Hand out the slots of storage, front to back.
Store packet in the next free slot and return it for the rest of
'f; None once the storage is used up.
True if nothing was handed out yet.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.