Struct ra_ap_hir_expand::InFile [−][src]
pub struct InFile<T> {
pub file_id: HirFileId,
pub value: T,
}Expand description
InFile<T> stores a value of T inside a particular file/syntax tree.
Typical usages are:
InFile<SyntaxNode>– syntax node in a fileInFile<ast::FnDef>– ast node in a fileInFile<TextSize>– offset in a file
Fields
file_id: HirFileIdvalue: TImplementations
pub fn ancestors_with_macros(
self,
db: &dyn AstDatabase
) -> impl Iterator<Item = InFile<SyntaxNode>> + '_pub fn ancestors_with_macros(
self,
db: &dyn AstDatabase
) -> impl Iterator<Item = InFile<SyntaxNode>> + '_Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for InFile<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for InFile<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.