FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChartCollection

    struct · ferroui-controls-charts · v0.5.0

    struct ChartCollection<T: ObjectType>
    

    An observable collection with transactional ownership checks. Its storage is shared by handles; snapshots remain valid during reentrant notifications.

    View source

    Members

    count

    fn count(self: &Self) -> usize
    

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Source

    snapshot

    fn snapshot(self: &Self) -> Rc<Vec<Ref<T>>>
    

    Source

    get

    fn get(self: &Self, index: usize) -> Result<Ref<T>, ChartError>
    

    Source

    contains

    fn contains(self: &Self, value: impl IntoRef<T>) -> bool
    

    Source

    index_of

    fn index_of(self: &Self, value: impl IntoRef<T>) -> Option<usize>
    

    Source

    add

    fn add(self: &Self, value: impl IntoRef<T>) -> Result<(), ChartError>
    

    Source

    insert

    fn insert(self: &Self, index: usize, value: impl IntoRef<T>) -> Result<(), ChartError>
    

    Source

    set

    fn set(self: &Self, index: usize, value: impl IntoRef<T>) -> Result<(), ChartError>
    

    Source

    remove_at

    fn remove_at(self: &Self, index: usize) -> Result<Ref<T>, ChartError>
    

    Source

    remove

    fn remove(self: &Self, value: impl IntoRef<T>) -> bool
    

    Source

    clear

    fn clear(self: &Self) -> Result<(), ChartError>
    

    Source

    add_collection_changed

    fn add_collection_changed(self: &Self, handler: Rc<CollectionChangedHandler<Ref<T>>>) -> u64
    

    Source

    remove_collection_changed

    fn remove_collection_changed(self: &Self, token: u64) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • PartialEq

    Availability

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