You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I want is some way to use e.g. derived functions or trait implementations in general with derive(Any).
#[derive(Any,Debug,Display)]#[display(fmt = "name = {value}")]// STRING_DISPLAY uses the `Display` trait implementation#[rune(item = ::std::env, protocols(STRING_DISPLAY, DEBUG = Self::debug)]structVar{name:String,}implVar{// This would map debug to display instead of using the rust debug.fndebug(&self,buf:&mutString) -> fmt::Result{write!(buf, "{self}");}}
I have put together something here: bbb3897 though I think it could have a nicer interface:
What I want is some way to use e.g. derived functions or trait implementations in general with
derive(Any)
.I have put together something here: bbb3897 though I think it could have a nicer interface:
The text was updated successfully, but these errors were encountered: