Struct ra_ap_hir_def::attr::AttrQuery
source · pub struct AttrQuery<'attr> { /* private fields */ }
Implementations§
source§impl<'attr> AttrQuery<'attr>
impl<'attr> AttrQuery<'attr>
pub fn tt_values(self) -> impl Iterator<Item = &'attr Subtree>
pub fn string_value(self) -> Option<&'attr SmolStr>
pub fn exists(self) -> bool
pub fn attrs(self) -> impl Iterator<Item = &'attr Attr> + Clone
sourcepub fn find_string_value_in_tt(self, key: &'attr str) -> Option<&SmolStr>
pub fn find_string_value_in_tt(self, key: &'attr str) -> Option<&SmolStr>
Find string value for a specific key inside token tree
ⓘ
#[doc(html_root_url = "url")]
^^^^^^^^^^^^^ key