is_ref:
|
pub fn is_ref(self) -> bool { |
|
matches!(self.kind(), Ref(..)) |
|
} |
is_region_ptr:
|
pub fn is_region_ptr(self) -> bool { |
|
matches!(self.kind(), Ref(..)) |
|
} |
I don't know which name is better, but there probably shouldn't be two is_* helpers doing exactly the same thing.
is_ref:rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1809 to 1811 in da7c50c
is_region_ptr:rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1917 to 1919 in da7c50c
I don't know which name is better, but there probably shouldn't be two
is_*helpers doing exactly the same thing.