pub struct PropertyAttribute<I: Any + Send>(/* private fields */);Expand description
Implementations§
Source§impl<I: Any + Send> PropertyAttribute<I>
impl<I: Any + Send> PropertyAttribute<I>
Sourcepub fn new(
build: impl FnMut(PropertyAttributeArgs<'_, I>) -> I + Send + 'static,
) -> Self
pub fn new( build: impl FnMut(PropertyAttributeArgs<'_, I>) -> I + Send + 'static, ) -> Self
New property attribute build action.
Sourcepub fn build(&self, args: PropertyAttributeArgs<'_, I>) -> I
pub fn build(&self, args: PropertyAttributeArgs<'_, I>) -> I
Run the build action on a input.
Trait Implementations§
Source§impl<I: Any + Send> AnyPropertyAttribute for PropertyAttribute<I>
impl<I: Any + Send> AnyPropertyAttribute for PropertyAttribute<I>
Source§fn clone_boxed(&self) -> Box<dyn AnyPropertyAttribute>
fn clone_boxed(&self) -> Box<dyn AnyPropertyAttribute>
Clone the attribute action into a new box.
Auto Trait Implementations§
impl<I> Freeze for PropertyAttribute<I>
impl<I> !RefUnwindSafe for PropertyAttribute<I>
impl<I> Send for PropertyAttribute<I>
impl<I> Sync for PropertyAttribute<I>
impl<I> Unpin for PropertyAttribute<I>
impl<I> !UnwindSafe for PropertyAttribute<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,
§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