1
Fork 0

drive-by: Add is_async fn to hir::IsAsync

This commit is contained in:
Michael Goulet 2022-11-19 02:22:24 +00:00
parent fd3bfb3551
commit c4165f3a96
6 changed files with 17 additions and 13 deletions

View file

@ -2720,6 +2720,12 @@ pub enum IsAsync {
NotAsync,
}
impl IsAsync {
pub fn is_async(self) -> bool {
self == IsAsync::Async
}
}
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, Encodable, Decodable, HashStable_Generic)]
pub enum Defaultness {
Default { has_value: bool },