PooledInlineList
struct · ferroui-base · v0.5.0
struct PooledInlineList<T: ?Sized>
A list of shared items that holds one item in place and more in a list.
Items are compared by reference, as in the original, whose items are
reference types. The original rents the array of the list from the shared
array pool; here the list owns a Vec.
Members
new
fn new() -> Self
from_raw_state
fn from_raw_state(raw_state: PooledInlineListRawState<T>) -> Self
For compositor serialization purposes only, takes the ownership of previously transferred state
add
fn add(self: &mut Self, item: Rc<T>)
remove
fn remove(self: &mut Self, item: &Rc<T>) -> bool
Removes the item when it is the one the list holds in place.
As in the original, which tests the argument rather than its own state for being a list, an item of a list of several is not removed.
ensure_capacity
fn ensure_capacity(self: &mut Self, count: i32)
dispose
fn dispose(self: &mut Self)
count
fn count(self: &Self) -> i32
get_enumerator
fn get_enumerator(self: &Self) -> PooledInlineListEnumerator<'_, T>
transfer_raw_state
fn transfer_raw_state(self: &mut Self) -> PooledInlineListRawState<T>
For compositor serialization purposes only, gives up the ownership of the internal state and returns it
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefaultIntoIterator
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.