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§
Source§impl InMacroFile<SyntaxToken>
impl InMacroFile<SyntaxToken>
pub fn upmap_once( self, db: &dyn ExpandDatabase, ) -> InFile<SmallVec<[TextRange; 1]>>
Source§impl InMacroFile<TextSize>
impl InMacroFile<TextSize>
pub fn original_file_range( self, db: &dyn ExpandDatabase, ) -> (FileRange, SyntaxContext)
Source§impl<FileId: Copy, N: AstNode> InFileWrapper<FileId, &N>
impl<FileId: Copy, N: AstNode> InFileWrapper<FileId, &N>
pub fn syntax_ref(&self) -> InFileWrapper<FileId, &SyntaxNode>
Source§impl<FileId: FileIdToSyntax, N: AstNode> InFileWrapper<FileId, AstPtr<N>>
impl<FileId: FileIdToSyntax, N: AstNode> InFileWrapper<FileId, AstPtr<N>>
pub fn to_node(&self, db: &dyn ExpandDatabase) -> N
Source§impl<FileId: Copy, N: AstNode> InFileWrapper<FileId, N>
impl<FileId: Copy, N: AstNode> InFileWrapper<FileId, N>
pub fn syntax(&self) -> InFileWrapper<FileId, &SyntaxNode>
Source§impl<FileId: FileIdToSyntax, T> InFileWrapper<FileId, T>
impl<FileId: FileIdToSyntax, T> InFileWrapper<FileId, T>
pub fn file_syntax(&self, db: &dyn ExpandDatabase) -> SyntaxNode
Source§impl<FileKind: Copy, T: Clone> InFileWrapper<FileKind, &T>
impl<FileKind: Copy, T: Clone> InFileWrapper<FileKind, &T>
pub fn cloned(&self) -> InFileWrapper<FileKind, T>
Source§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>>
Source§impl<FileKind, T> InFileWrapper<FileKind, Option<T>>
impl<FileKind, T> InFileWrapper<FileKind, Option<T>>
pub fn transpose(self) -> Option<InFileWrapper<FileKind, T>>
Source§impl<FileKind: Copy, T> InFileWrapper<FileKind, T>
impl<FileKind: Copy, T> InFileWrapper<FileKind, T>
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>,
Source§impl<FileKind, T> InFileWrapper<FileKind, T>
impl<FileKind, T> InFileWrapper<FileKind, T>
Trait Implementations
Source§impl<FileKind: Clone, T: Clone> Clone for InFileWrapper<FileKind, T>
impl<FileKind: Clone, T: Clone> Clone for InFileWrapper<FileKind, T>
Source§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