TreeDataGridSourceRef
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridSourceRef
A shared core source as the value of a property of the grid (Source, Model): the core's
source trait object, compared by identity.
The conversions from the typed sources register the typed operations of their model type
(register_tree_data_grid_model), which the untyped presentation needs to create row and
cell selections and to follow the columns; a source handed over as an untyped
Rc<dyn ITreeDataGridSource> relies on its type having been registered.
Members
new
fn new(source: Rc<dyn ITreeDataGridSource>) -> Self
The handle of an untyped source.
of
fn of<M: TreeModel, S: ITreeDataGridSourceOf<M> + 'static>(source: Rc<S>) -> Self
The handle of a typed source of models of M, registering the source and model types.
source
fn source(self: &Self) -> &Rc<dyn ITreeDataGridSource>
The source.
downcast
fn downcast<T: 'static>(self: &Self) -> Option<Rc<T>>
The source as the concrete source type T.
ptr_eq
fn ptr_eq(self: &Self, other: &TreeDataGridSourceRef) -> bool
Whether two handles hold the same source.
is
fn is(self: &Self, source: &Rc<dyn ITreeDataGridSource>) -> bool
Whether the handle holds source.
register_binding_conversion
fn register_binding_conversion<M: TreeModel>()
Lets bindings deliver a value of the core's sources of models of M to a property of type
Option<TreeDataGridSourceRef> (or TreeDataGridSourceRef) on the current thread, as
ItemsSource::register_binding_conversion does for collections.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelClonePartialEqDebugDerefFrom<Rc<dyn ITreeDataGridSource>>From<Rc<FlatTreeDataGridSource<M>>>From<Rc<HierarchicalTreeDataGridSource<M>>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.