Skip to content
New issue

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

Adds a type parameter getter #122

Merged
merged 2 commits into from
Aug 5, 2021
Merged

Adds a type parameter getter #122

merged 2 commits into from
Aug 5, 2021

Conversation

montekki
Copy link
Contributor

@montekki montekki commented Aug 3, 2021

Needed for ascjones/chameleon#5 to work

/// `None` if the parameter is skipped.
pub fn ty(&self) -> Option<&T::Type> {
self.ty.as_ref()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add name too while you're here?

@montekki montekki merged commit b8cb917 into paritytech:master Aug 5, 2021
@ascjones ascjones mentioned this pull request Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants