pub struct CallbackNamedAdapter<T> {
pub inner: T,
pub name: &'static str,
}Expand description
Adapts a callback with a custom name into an AttributeValue.
This type wraps a callback and its custom attribute name, enabling
Into<AttributeValue> trait implementation for named callbacks.
Used by the html! macro for component callback props.
Fields§
§inner: TThe wrapped callback to be adapted.
name: &'static strThe custom attribute name (e.g., “on-increment”, “on-change”).
Implementations§
Source§impl<T> CallbackNamedAdapter<T>
impl<T> CallbackNamedAdapter<T>
Trait Implementations§
Source§impl<T: Debug> Debug for CallbackNamedAdapter<T>
impl<T: Debug> Debug for CallbackNamedAdapter<T>
Source§impl<F> From<CallbackNamedAdapter<F>> for AttributeValue
Converts a named callback adapter into an AttributeValue.
impl<F> From<CallbackNamedAdapter<F>> for AttributeValue
Converts a named callback adapter into an AttributeValue.
Auto Trait Implementations§
impl<T> Freeze for CallbackNamedAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for CallbackNamedAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for CallbackNamedAdapter<T>where
T: Send,
impl<T> Sync for CallbackNamedAdapter<T>where
T: Sync,
impl<T> Unpin for CallbackNamedAdapter<T>where
T: Unpin,
impl<T> UnsafeUnpin for CallbackNamedAdapter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CallbackNamedAdapter<T>where
T: UnwindSafe,
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