(function() { var type_impls = Object.fromEntries([["hir",[["
§

impl<FileKind, T> Clone for InFileWrapper<FileKind, T>
where\n FileKind: Clone,\n T: Clone,

§

fn clone(&self) -> InFileWrapper<FileKind, T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> Debug for InFileWrapper<FileKind, T>
where\n FileKind: Debug,\n T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
","Debug","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<T> From<InFileWrapper<EditionedFileId, T>> for InFileWrapper<HirFileId, T>

§

fn from(_: InFileWrapper<EditionedFileId, T>) -> InFileWrapper<HirFileId, T>

Converts to this type from the input type.
","From>","hir::InFile"],["
§

impl<T> From<InFileWrapper<MacroCallId, T>> for InFileWrapper<HirFileId, T>

§

fn from(_: InFileWrapper<MacroCallId, T>) -> InFileWrapper<HirFileId, T>

Converts to this type from the input type.
","From>","hir::InFile"],["
§

impl<FileKind, T> Hash for InFileWrapper<FileKind, T>
where\n FileKind: Hash,\n T: Hash,

§

fn hash<__H>(&self, state: &mut __H)
where\n __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileId, N> InFileWrapper<FileId, &N>
where\n FileId: Copy,\n N: AstNode,

pub fn syntax_ref(&self) -> InFileWrapper<FileId, &SyntaxNode<RustLanguage>>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileId, N> InFileWrapper<FileId, AstPtr<N>>
where\n FileId: FileIdToSyntax,\n N: AstNode,

pub fn to_node(&self, db: &(dyn ExpandDatabase + 'static)) -> N

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileId, N> InFileWrapper<FileId, N>
where\n FileId: Copy,\n N: AstNode,

pub fn syntax(&self) -> InFileWrapper<FileId, &SyntaxNode<RustLanguage>>

pub fn node_file_range(&self) -> FileRangeWrapper<FileId>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileId, SN> InFileWrapper<FileId, SN>
where\n FileId: Copy,\n SN: Borrow<SyntaxNode<RustLanguage>>,

pub fn file_range(&self) -> FileRangeWrapper<FileId>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileId, T> InFileWrapper<FileId, T>
where\n FileId: FileIdToSyntax,

pub fn file_syntax(\n &self,\n db: &(dyn ExpandDatabase + 'static),\n) -> SyntaxNode<RustLanguage>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> InFileWrapper<FileKind, &T>
where\n FileKind: Copy,\n T: Clone,

pub fn cloned(&self) -> InFileWrapper<FileKind, T>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, L, R> InFileWrapper<FileKind, Either<L, R>>

pub fn transpose(\n self,\n) -> Either<InFileWrapper<FileKind, L>, InFileWrapper<FileKind, R>>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> InFileWrapper<FileKind, Option<T>>

pub fn transpose(self) -> Option<InFileWrapper<FileKind, T>>

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> InFileWrapper<FileKind, T>

pub fn new(file_id: FileKind, value: T) -> InFileWrapper<FileKind, T>

pub fn map<F, U>(self, f: F) -> InFileWrapper<FileKind, U>
where\n F: FnOnce(T) -> U,

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> InFileWrapper<FileKind, T>
where\n FileKind: Copy,

pub fn with_value<U>(&self, value: U) -> InFileWrapper<FileKind, U>

pub fn as_ref(&self) -> InFileWrapper<FileKind, &T>

pub fn borrow<U>(&self) -> InFileWrapper<FileKind, &U>
where\n T: Borrow<U>,

",0,"hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl InFileWrapper<HirFileId, &SyntaxNode<RustLanguage>>

pub fn original_file_range_opt(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<(FileRangeWrapper<EditionedFileId>, SyntaxContext)>

Attempts to map the syntax node back up its macro calls.

\n
",0,"hir::InFile"],["
§

impl InFileWrapper<HirFileId, ErasedFileAstId>

pub fn to_range(&self, db: &(dyn ExpandDatabase + 'static)) -> TextRange

pub fn to_ptr(\n &self,\n db: &(dyn ExpandDatabase + 'static),\n) -> SyntaxNodePtr<RustLanguage>

",0,"hir::InFile"],["
§

impl<N> InFileWrapper<HirFileId, FileAstId<N>>
where\n N: AstNode,

pub fn to_node(&self, db: &(dyn ExpandDatabase + 'static)) -> N

pub fn to_range(&self, db: &(dyn ExpandDatabase + 'static)) -> TextRange

pub fn to_in_file_node(\n &self,\n db: &(dyn ExpandDatabase + 'static),\n) -> InFileWrapper<HirFileId, N>

pub fn to_ptr(&self, db: &(dyn ExpandDatabase + 'static)) -> AstPtr<N>

pub fn erase(&self) -> InFileWrapper<HirFileId, ErasedFileAstId>

pub fn upcast<M>(self) -> InFileWrapper<HirFileId, FileAstId<M>>
where\n M: AstIdNode,\n N: Into<M>,

",0,"hir::InFile"],["
§

impl<N> InFileWrapper<HirFileId, N>
where\n N: AstNode,

pub fn original_ast_node_rooted(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<InFileWrapper<EditionedFileId, N>>

",0,"hir::InFile"],["
§

impl<SN> InFileWrapper<HirFileId, SN>
where\n SN: Borrow<SyntaxNode<RustLanguage>>,

pub fn parent_ancestors_with_macros(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> impl Iterator<Item = InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>>

pub fn ancestors_with_macros(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> impl Iterator<Item = InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>>

pub fn kind(&self) -> SyntaxKind

pub fn text_range(&self) -> TextRange

pub fn original_file_range_rooted(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> FileRangeWrapper<EditionedFileId>

Falls back to the macro call range if the node cannot be mapped up fully.

\n

For attributes and derives, this will point back to the attribute only.\nFor the entire item use InFile::original_file_range_full.

\n

pub fn original_file_range_with_macro_call_input(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> FileRangeWrapper<EditionedFileId>

Falls back to the macro call range if the node cannot be mapped up fully.

\n

pub fn original_syntax_node_rooted(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<InFileWrapper<EditionedFileId, SyntaxNode<RustLanguage>>>

",0,"hir::InFile"],["
§

impl InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>

pub fn original_file_range(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> FileRangeWrapper<EditionedFileId>

Falls back to the macro call range if the node cannot be mapped up fully.

\n

pub fn original_file_range_opt(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<FileRangeWrapper<EditionedFileId>>

Attempts to map the syntax node back up its macro calls.

\n
",0,"hir::InFile"],["
§

impl<T> InFileWrapper<HirFileId, T>

",0,"hir::InFile"],["
§

impl InFileWrapper<HirFileId, TextRange>

pub fn original_node_file_range(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> (FileRangeWrapper<EditionedFileId>, SyntaxContext)

pub fn original_node_file_range_rooted(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> FileRangeWrapper<EditionedFileId>

pub fn original_node_file_range_with_macro_call_input(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> FileRangeWrapper<EditionedFileId>

pub fn original_node_file_range_opt(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<(FileRangeWrapper<EditionedFileId>, SyntaxContext)>

pub fn original_node_file_range_rooted_opt(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> Option<FileRangeWrapper<EditionedFileId>>

",0,"hir::InFile"],["
§

impl InFileWrapper<MacroCallId, SyntaxToken<RustLanguage>>

pub fn upmap_once(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> InFileWrapper<HirFileId, SmallVec<[TextRange; 1]>>

",0,"hir::InMacroFile"],["
§

impl InFileWrapper<MacroCallId, TextSize>

pub fn original_file_range(\n self,\n db: &(dyn ExpandDatabase + 'static),\n) -> (FileRangeWrapper<EditionedFileId>, SyntaxContext)

",0,"hir::InMacroFile"],["
§

impl<FileKind, T> PartialEq for InFileWrapper<FileKind, T>
where\n FileKind: PartialEq,\n T: PartialEq,

§

fn eq(&self, other: &InFileWrapper<FileKind, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> Copy for InFileWrapper<FileKind, T>
where\n FileKind: Copy,\n T: Copy,

","Copy","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> Eq for InFileWrapper<FileKind, T>
where\n FileKind: Eq,\n T: Eq,

","Eq","hir::InFile","hir::InMacroFile","hir::InRealFile"],["
§

impl<FileKind, T> StructuralPartialEq for InFileWrapper<FileKind, T>

","StructuralPartialEq","hir::InFile","hir::InMacroFile","hir::InRealFile"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() //{"start":55,"fragment_lengths":[53289]}