FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    from_raw_state

    fn from_raw_state(raw_state: PooledInlineListRawState<T>) -> Self
    

    For compositor serialization purposes only, takes the ownership of previously transferred state

    Source

    add

    fn add(self: &mut Self, item: Rc<T>)
    

    Source

    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.

    Source

    ensure_capacity

    fn ensure_capacity(self: &mut Self, count: i32)
    

    Source

    dispose

    fn dispose(self: &mut Self)
    

    Source

    count

    fn count(self: &Self) -> i32
    

    Source

    get_enumerator

    fn get_enumerator(self: &Self) -> PooledInlineListEnumerator<'_, T>
    

    Source

    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

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default
    • IntoIterator

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.