FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ValueColumnBase

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct ValueColumnBase<M: TreeModel, V: Clone + 'static>
    

    ColumnBase<TModel, TValue>.

    View source

    Members

    new

    fn new(header: Option<BoxedValue>, accessor: Accessor<M, V>, comparer: Option<ValueComparer<V>>, width: Option<GridLength>, options: Rc<dyn IColumnOptions<M>>) -> Self
    

    The base of a column of the value accessor reads, sorted by comparer (None: the values do not compare, and the column sorts only with the comparisons of its options).

    Source

    column_base

    fn column_base(self: &Self) -> &ColumnBase<M>
    

    The state every column has.

    Source

    value_selector

    fn value_selector(self: &Self) -> &Rc<dyn Fn(&Rc<M>) -> V>
    

    The function that selects the value of the column from a model (ValueSelector).

    Source

    accessor

    fn accessor(self: &Self) -> &Accessor<M, V>
    

    The accessor of the value (Binding: its getter, setter and observed path).

    Source

    can_write

    fn can_write(self: &Self) -> bool
    

    Whether the cells of the column write their values back (Binding.Write is not null).

    Source

    get_comparison

    fn get_comparison(self: &Self, direction: ListSortDirection) -> Option<Comparison<M>>
    

    The comparison that sorts the models by the column in direction, or None.

    Source

    create_binding_expression

    fn create_binding_expression(self: &Self, model: &Rc<M>) -> Rc<AccessorBinding<M, V>>
    

    The binding of a cell of model (CreateBindingExpression).

    Source

    Trait implementations

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

    Availability

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