#[non_exhaustive]pub struct PropertyNewArgs {
pub args: Vec<Box<dyn Any>>,
pub attributes: PropertyAttributes,
pub attributes_when_data: PropertyAttributesWhenData,
}Expand description
Args for PropertyInfo::new closure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.args: Vec<Box<dyn Any>>Values for each input in the same order they appear in PropertyInfo::inputs, types must match
the input kind and type, the function panics if the types don’t match or not all inputs are provided.
The expected types for each InputKind are:
| Kind | Expected Type |
|---|---|
Var | Box<AnyVar> or Box<AnyWhenVarBuilder> |
Value | Box<T> |
UiNode | Box<ArcNode> or Box<WhenUiNodeBuilder> |
Handler | Box<ArcHandler<A>> or Box<AnyWhenArcHandlerBuilder> |
The new function will downcast and unbox the args.
attributes: PropertyAttributesThe property attribute build actions can be empty or each item must contain one builder for each input in the same order they
appear in PropertyInfo::inputs, the function panics if the types don’t match or not all inputs are provided.
The expected types for each InputKind are:
| Kind | Expected Type |
|---|---|
Var | Box<PropertyAttribute<Var<T>>> |
Value | Box<PropertyAttribute<BoxAnyVarValue>> |
UiNode | Box<PropertyAttribute<ArcNode>> |
Handler | Box<PropertyAttribute<ArcHandler<A>>> |
The new function will downcast and unbox the args.
attributes_when_data: PropertyAttributesWhenDataWhen build action data for each attributes.
If not empty, each item is the PropertyAttributeArgs::when_conditions_data for each action.
Auto Trait Implementations§
impl Freeze for PropertyNewArgs
impl !RefUnwindSafe for PropertyNewArgs
impl !Send for PropertyNewArgs
impl !Sync for PropertyNewArgs
impl Unpin for PropertyNewArgs
impl !UnwindSafe for PropertyNewArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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