feat: Added/expanded Typed impls

This commit is contained in:
2025-10-15 03:34:56 +02:00
parent 54164c517b
commit 97b944874a
6 changed files with 89 additions and 3 deletions

View File

@@ -10,6 +10,12 @@ pub struct ActionCallback<P> {
_parameters: PhantomData<P>,
}
impl Typed for ActionCallback<()> {
fn type_name() -> String {
"fun() | fun()[]".into()
}
}
impl<A: Typed> Typed for ActionCallback<A> {
fn type_name() -> String {
let type_name = A::type_name();