Note that you can have an associated constant in a trait, which gives you static access to it via generics. You can't use it for any type level decisions yet though. trait Foo { const PATH: &str; } requires all implementors of your trait to provide this constant
-
-
-
that's perfect! I don't need to compare them for equality at compile time like w/ LabeledGeneric in frunk, I just need them at runtime to generate path segment matchers
Kraj razgovora
Novi razgovor -
-
Prikaži još odgovora, uključujući one koji mogu sadržavati uvredljiv sadržaj
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.