pub struct VirtualDocument {
pub content: String,
pub position_map: PositionMap,
pub language: String,
pub function_name: String,
pub source_uri: String,
pub virtual_path: PathBuf,
}Expand description
A virtual foreign language document generated from a foreign function block.
Fields§
§content: StringThe virtual document content (e.g., a complete Python file).
position_map: PositionMapPosition mapping between Shape source and virtual document.
language: StringThe foreign language identifier (e.g., “python”).
function_name: StringThe function name in the Shape source.
source_uri: StringURI of the Shape source file this was extracted from.
virtual_path: PathBufVirtual file path used for the child LSP.
Auto Trait Implementations§
impl Freeze for VirtualDocument
impl RefUnwindSafe for VirtualDocument
impl Send for VirtualDocument
impl Sync for VirtualDocument
impl Unpin for VirtualDocument
impl UnsafeUnpin for VirtualDocument
impl UnwindSafe for VirtualDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more