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
It could be useful to mark certain trait implementations as unstable, for example:
// The struct itself is stable...pubstructMyStruct{// ...}// But its FromStr implementation is not.#[stability::unstable(feature = "mystruct-fromstr")]implFromStrforMyStruct{// etc...}
I'm not sure that this is really possible to do though in just a macro, since a type either implements a trait or not. I don't think there's a way to implement a trait just within the context of the current crate and not "leak" the implementation to consumers. Maybe some sort of deref/newtype magic would work...
The text was updated successfully, but these errors were encountered:
It could be useful to mark certain trait implementations as unstable, for example:
I'm not sure that this is really possible to do though in just a macro, since a type either implements a trait or not. I don't think there's a way to implement a trait just within the context of the current crate and not "leak" the implementation to consumers. Maybe some sort of deref/newtype magic would work...
The text was updated successfully, but these errors were encountered: