pub struct PropertyBuildAction<I: Any + Send>(/* private fields */);
Expand description
Represents a custom build action targeting a property input that is applied after when
is build.
The type I
depends on the input kind:
The expected types for each InputKind
are:
Kind | Expected Type |
---|---|
Var | BoxedVar<T> |
Value | T |
UiNode | ArcNode<BoxedUiNode> |
UiNodeList | ArcNodeList<BoxedUiNodeList> |
WidgetHandler | ArcWidgetHandler<A> |
Implementations§
source§impl<I: Any + Send> PropertyBuildAction<I>
impl<I: Any + Send> PropertyBuildAction<I>
sourcepub fn new(
build: impl FnMut(PropertyBuildActionArgs<'_, I>) -> I + Send + 'static,
) -> Self
pub fn new( build: impl FnMut(PropertyBuildActionArgs<'_, I>) -> I + Send + 'static, ) -> Self
New build action.
sourcepub fn build(&self, args: PropertyBuildActionArgs<'_, I>) -> I
pub fn build(&self, args: PropertyBuildActionArgs<'_, I>) -> I
Run the build action on a input.
Trait Implementations§
source§impl<I: Any + Send> AnyPropertyBuildAction for PropertyBuildAction<I>
impl<I: Any + Send> AnyPropertyBuildAction for PropertyBuildAction<I>
source§fn clone_boxed(&self) -> Box<dyn AnyPropertyBuildAction>
fn clone_boxed(&self) -> Box<dyn AnyPropertyBuildAction>
Clone the action into a new box.
Auto Trait Implementations§
impl<I> Freeze for PropertyBuildAction<I>
impl<I> !RefUnwindSafe for PropertyBuildAction<I>
impl<I> Send for PropertyBuildAction<I>
impl<I> Sync for PropertyBuildAction<I>
impl<I> Unpin for PropertyBuildAction<I>
impl<I> !UnwindSafe for PropertyBuildAction<I>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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