We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be great to accumulate more use-cases.
Open thread for suggestions. =)
The text was updated successfully, but these errors were encountered:
Delegation traits (Code stolen from EddyB)
// Potentially somewhere central, or generated per-trait. trait Delegate/*Health*/ { type Delegatee; delegatee: Self::Delegatee; } impl<T: Delegate/*Health*/> Health for T where T::Delegatee: Health { fn health(&self) -> u8 { self.delegatee.health() } } impl Delegate/*Health*/ for Player { delegatee => self.health; }
rust-lang/rfcs#2393 (comment)
Sorry, something went wrong.
No branches or pull requests
It'd be great to accumulate more use-cases.
Open thread for suggestions. =)
The text was updated successfully, but these errors were encountered: