FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RecyclePool

    struct · ferroui-controls-repeater · v0.5.0

    struct RecyclePool
    

    Keyed element pool that preserves the owner when the same panel reuses an element and detaches it when a different panel requests it.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RecyclePool>
    

    Returns a strong reference to this object.

    Source

    put_element_core

    fn put_element_core(self: &Self, element: Ref<Control>, key: &str, owner: Option<Ref<Control>>) -> Result<(), ElementFactoryError>
    

    Source

    try_get_element_core

    fn try_get_element_core(self: &Self, key: &str, owner: Option<Ref<Control>>) -> Result<Option<Ref<Control>>, ElementFactoryError>
    

    Source

    reuse_key_property

    fn reuse_key_property() -> &'static AttachedProperty<String>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    put_element

    fn put_element(self: &Self, element: Ref<Control>, key: &str) -> Result<(), ElementFactoryError>
    

    Source

    put_element_with_owner

    fn put_element_with_owner(self: &Self, element: Ref<Control>, key: &str, owner: Option<Ref<Control>>) -> Result<(), ElementFactoryError>
    

    Source

    try_get_element

    fn try_get_element(self: &Self, key: &str) -> Result<Option<Ref<Control>>, ElementFactoryError>
    

    Source

    try_get_element_with_owner

    fn try_get_element_with_owner(self: &Self, key: &str, owner: Option<Ref<Control>>) -> Result<Option<Ref<Control>>, ElementFactoryError>
    

    Source

    get_reuse_key

    fn get_reuse_key(element: &Control) -> String
    

    Source

    set_reuse_key

    fn set_reuse_key(element: &Control, key: impl Into<String>)
    

    Source

    get_origin_template

    fn get_origin_template(element: &Control) -> Option<Rc<dyn IDataTemplate>>
    

    Source

    set_origin_template

    fn set_origin_template(element: &Control, template: Option<Rc<dyn IDataTemplate>>)
    

    Source

    get_pool_instance

    fn get_pool_instance(template: &Rc<dyn IDataTemplate>) -> Option<Ref<Self>>
    

    Source

    set_pool_instance

    fn set_pool_instance(template: &Rc<dyn IDataTemplate>, pool: Option<Ref<Self>>)
    

    Source

    count

    fn count(self: &Self) -> usize
    

    Source

    Trait implementations

    Availability

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