Type Alias InMacroFile
pub type InMacroFile<T> = InFileWrapper<MacroFileId, T>;
Aliased Type§
struct InMacroFile<T> {
pub file_id: MacroFileId,
pub value: T,
}
Fields§
§file_id: MacroFileId
§value: T
Implementations
§impl<FileId, N> InFileWrapper<FileId, &N>where
FileId: Copy,
N: AstNode,
impl<FileId, N> InFileWrapper<FileId, &N>where
FileId: Copy,
N: AstNode,
pub fn syntax_ref(&self) -> InFileWrapper<FileId, &SyntaxNode<RustLanguage>>
§impl<FileId, N> InFileWrapper<FileId, AstPtr<N>>where
FileId: FileIdToSyntax,
N: AstNode,
impl<FileId, N> InFileWrapper<FileId, AstPtr<N>>where
FileId: FileIdToSyntax,
N: AstNode,
pub fn to_node(&self, db: &(dyn ExpandDatabase + 'static)) -> N
§impl<FileId, N> InFileWrapper<FileId, N>where
FileId: Copy,
N: AstNode,
impl<FileId, N> InFileWrapper<FileId, N>where
FileId: Copy,
N: AstNode,
pub fn syntax(&self) -> InFileWrapper<FileId, &SyntaxNode<RustLanguage>>
§impl<FileId, T> InFileWrapper<FileId, T>where
FileId: FileIdToSyntax,
impl<FileId, T> InFileWrapper<FileId, T>where
FileId: FileIdToSyntax,
pub fn file_syntax( &self, db: &(dyn ExpandDatabase + 'static), ) -> SyntaxNode<RustLanguage>
§impl<FileKind, T> InFileWrapper<FileKind, &T>
impl<FileKind, T> InFileWrapper<FileKind, &T>
pub fn cloned(&self) -> InFileWrapper<FileKind, T>
§impl<FileKind, L, R> InFileWrapper<FileKind, Either<L, R>>
impl<FileKind, L, R> InFileWrapper<FileKind, Either<L, R>>
pub fn transpose( self, ) -> Either<InFileWrapper<FileKind, L>, InFileWrapper<FileKind, R>>
§impl<FileKind, T> InFileWrapper<FileKind, Option<T>>
impl<FileKind, T> InFileWrapper<FileKind, Option<T>>
pub fn transpose(self) -> Option<InFileWrapper<FileKind, T>>
§impl<FileKind, T> InFileWrapper<FileKind, T>
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
F: FnOnce(T) -> U,
§impl<FileKind, T> InFileWrapper<FileKind, T>where
FileKind: Copy,
impl<FileKind, T> InFileWrapper<FileKind, T>where
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
T: Borrow<U>,
§impl InFileWrapper<MacroFileId, SyntaxToken<RustLanguage>>
impl InFileWrapper<MacroFileId, SyntaxToken<RustLanguage>>
pub fn upmap_once( self, db: &(dyn ExpandDatabase + 'static), ) -> InFileWrapper<HirFileId, SmallVec<[TextRange; 1]>>
§impl InFileWrapper<MacroFileId, TextSize>
impl InFileWrapper<MacroFileId, TextSize>
pub fn original_file_range( self, db: &(dyn ExpandDatabase + 'static), ) -> (FileRangeWrapper<EditionedFileId>, SyntaxContext)
Trait Implementations
§impl<FileKind, T> Clone for InFileWrapper<FileKind, T>
impl<FileKind, T> Clone for InFileWrapper<FileKind, T>
§fn clone(&self) -> InFileWrapper<FileKind, T>
fn clone(&self) -> InFileWrapper<FileKind, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more