Add ty::Visibility::is_public()
This commit is contained in:
@@ -333,6 +333,10 @@ impl Visibility {
|
||||
Visibility::Invisible => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_public(self) -> bool {
|
||||
matches!(self, Visibility::Public)
|
||||
}
|
||||
}
|
||||
|
||||
/// The crate variances map is computed during typeck and contains the
|
||||
|
||||
Reference in New Issue
Block a user