pub struct DataBindingStore {
pub nodes: Vec<LiveNode>,
/* private fields */
}
Fields§
§nodes: Vec<LiveNode>
Implementations§
Source§impl DataBindingStore
impl DataBindingStore
pub fn new() -> Self
pub fn from_nodes(nodes: Vec<LiveNode>) -> Self
pub fn set_mutated_by(&mut self, uid: WidgetUid)
pub fn data_bind<F>(
&mut self,
cx: &mut Cx,
actions: &Actions,
ui: &WidgetRef,
f: F,
)where
F: Fn(DataBindingMap<'_>),
pub fn contains(&mut self, data_id: &[LiveId]) -> bool
Source§impl DataBindingStore
impl DataBindingStore
pub fn data_to_widgets<'a>( &'a self, cx: &'a mut Cx, ui: &'a WidgetRef, ) -> DataBindingMap<'a>
pub fn widgets_to_data<'a>( &'a mut self, cx: &'a mut Cx, actions: &'a Actions, ui: &'a WidgetRef, ) -> DataBindingMap<'a>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataBindingStore
impl RefUnwindSafe for DataBindingStore
impl Send for DataBindingStore
impl Sync for DataBindingStore
impl Unpin for DataBindingStore
impl UnwindSafe for DataBindingStore
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more