Trait doesn't get generated if impl as result #2526
Answered
by
fzyzcjy
CodeDoctorDE
asked this question in
Q&A
-
Hello I have this trait: pub trait SetonixPlugin {
fn event_system(&self) -> impl EventRunner;
}
pub trait EventRunner : Sized + Sync + Send {
fn run_event(&self, event_type: String, event: String, server_event: String,target: i32) -> EventResult;
} The thing is: This trait only generates if we change The thing is: If I use the trait on something, it generates the implements on the dart side correct but the abstract class doesn't get generated |
Beta Was this translation helpful? Give feedback.
Answered by
fzyzcjy
Feb 2, 2025
Replies: 1 comment
-
Hi, it seems that |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CodeDoctorDE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it seems that
impl EventRunner
type is not supported yet, while things like string or struct is supported.