Struct BindingGroupBuilder
pub struct BindingGroupBuilder<'a> { /* private fields */ }Expand description
Builder for binding group bindings.
Implementations§
§impl<'a> BindingGroupBuilder<'a>
impl<'a> BindingGroupBuilder<'a>
pub fn transform_from<F>(self, func: F) -> BindingGroupBuilder<'a>
pub fn transform_from<F>(self, func: F) -> BindingGroupBuilder<'a>
Transform changed property values from the target object to the source object with the given closure.
pub fn transform_to<F>(self, func: F) -> BindingGroupBuilder<'a>
pub fn transform_to<F>(self, func: F) -> BindingGroupBuilder<'a>
Transform changed property values from the source object to the target object with the given closure.
pub fn flags(self, flags: BindingFlags) -> BindingGroupBuilder<'a>
pub fn flags(self, flags: BindingFlags) -> BindingGroupBuilder<'a>
Bind the properties with the given flags.
pub fn bidirectional(self) -> BindingGroupBuilder<'a>
pub fn bidirectional(self) -> BindingGroupBuilder<'a>
Set the binding flags to BIDIRECTIONAL.
pub fn sync_create(self) -> BindingGroupBuilder<'a>
pub fn sync_create(self) -> BindingGroupBuilder<'a>
Set the binding flags to SYNC_CREATE.
pub fn invert_boolean(self) -> BindingGroupBuilder<'a>
pub fn invert_boolean(self) -> BindingGroupBuilder<'a>
Set the binding flags to INVERT_BOOLEAN.
pub fn try_build(self) -> Result<(), BoolError>
pub fn try_build(self) -> Result<(), BoolError>
Establish the property binding.
This fails if the provided properties do not exist.
pub fn build(self)
pub fn build(self)
Similar to try_build but panics instead of failing.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more