pub struct BindingGroupBuilder<'a> { /* private fields */ }
Available on crate feature
v2_72
only.Expand description
Builder for binding group bindings.
Implementations§
Source§impl<'a> BindingGroupBuilder<'a>
impl<'a> BindingGroupBuilder<'a>
Sourcepub fn transform_from<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>(
self,
func: F,
) -> Self
pub fn transform_from<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( self, func: F, ) -> Self
Transform changed property values from the target object to the source object with the given closure.
Sourcepub fn transform_to<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>(
self,
func: F,
) -> Self
pub fn transform_to<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( self, func: F, ) -> Self
Transform changed property values from the source object to the target object with the given closure.
Sourcepub fn flags(self, flags: BindingFlags) -> Self
pub fn flags(self, flags: BindingFlags) -> Self
Bind the properties with the given flags.
Sourcepub fn bidirectional(self) -> Self
pub fn bidirectional(self) -> Self
Set the binding flags to BIDIRECTIONAL
.
Sourcepub fn sync_create(self) -> Self
pub fn sync_create(self) -> Self
Set the binding flags to SYNC_CREATE
.
Sourcepub fn invert_boolean(self) -> Self
pub fn invert_boolean(self) -> Self
Set the binding flags to INVERT_BOOLEAN
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BindingGroupBuilder<'a>
impl<'a> !RefUnwindSafe for BindingGroupBuilder<'a>
impl<'a> !Send for BindingGroupBuilder<'a>
impl<'a> !Sync for BindingGroupBuilder<'a>
impl<'a> Unpin for BindingGroupBuilder<'a>
impl<'a> !UnwindSafe for BindingGroupBuilder<'a>
Blanket Implementations§
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