Type Alias InRealFile
pub type InRealFile<T> = InFileWrapper<EditionedFileId, T>;
Aliased Type§
struct InRealFile<T> {
pub file_id: EditionedFileId,
pub value: T,
}
Fields§
§file_id: EditionedFileId
§value: T
Implementations
§impl<SN> InFileWrapper<EditionedFileId, SN>where
SN: Borrow<SyntaxNode<RustLanguage>>,
impl<SN> InFileWrapper<EditionedFileId, SN>where
SN: Borrow<SyntaxNode<RustLanguage>>,
pub fn file_range(&self) -> FileRangeWrapper<EditionedFileId>
§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>,
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