Struct glib::object::BindingBuilder
source · [−]pub struct BindingBuilder<'a> { /* private fields */ }
Expand description
Builder for object property bindings.
Implementations
sourceimpl<'a> BindingBuilder<'a>
impl<'a> BindingBuilder<'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.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BindingBuilder<'a>
impl<'a> !Send for BindingBuilder<'a>
impl<'a> !Sync for BindingBuilder<'a>
impl<'a> Unpin for BindingBuilder<'a>
impl<'a> !UnwindSafe for BindingBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more