#[non_exhaustive]pub struct PropertyNewArgs {
pub args: Vec<Box<dyn Any>>,
pub attributes: Vec<Vec<Box<dyn AnyPropertyAttribute>>>,
pub attributes_when_data: Vec<Vec<Option<Arc<dyn Any + Sync + Send>>>>,
}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: Vec<Vec<Box<dyn AnyPropertyAttribute>>>The 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: Vec<Vec<Option<Arc<dyn Any + Sync + Send>>>>When 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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> 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