pub struct BuildTargetDependencySources { /* private fields */ }Expand description
The build target dependency sources request is sent from the client to the server to query for the sources of build target dependencies that are external to the workspace. The dependency sources response must not include source files that belong to a build target within the workspace, see buildTarget/sources. The server communicates during the initialize handshake whether this method is supported or not. This method can for example be used by a language server on textDocument/definition to “Go to definition” from project sources to dependency sources.
Implementations§
Source§impl BuildTargetDependencySources
impl BuildTargetDependencySources
pub fn new(text_document: TextDocumentIdentifier) -> Self
Sourcepub fn text_document(&self) -> &TextDocumentIdentifier
pub fn text_document(&self) -> &TextDocumentIdentifier
Get a reference to the bsp inverse sources params’s text document.
Sourcepub fn set_text_document(&mut self, text_document: TextDocumentIdentifier)
pub fn set_text_document(&mut self, text_document: TextDocumentIdentifier)
Set the bsp inverse sources params’s text document.
Trait Implementations§
Source§impl Clone for BuildTargetDependencySources
impl Clone for BuildTargetDependencySources
Source§fn clone(&self) -> BuildTargetDependencySources
fn clone(&self) -> BuildTargetDependencySources
Returns a duplicate 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 moreSource§impl Debug for BuildTargetDependencySources
impl Debug for BuildTargetDependencySources
Source§impl<'de> Deserialize<'de> for BuildTargetDependencySources
impl<'de> Deserialize<'de> for BuildTargetDependencySources
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuildTargetDependencySources
impl PartialEq for BuildTargetDependencySources
Source§fn eq(&self, other: &BuildTargetDependencySources) -> bool
fn eq(&self, other: &BuildTargetDependencySources) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BuildTargetDependencySources
impl StructuralPartialEq for BuildTargetDependencySources
Auto Trait Implementations§
impl Freeze for BuildTargetDependencySources
impl RefUnwindSafe for BuildTargetDependencySources
impl Send for BuildTargetDependencySources
impl Sync for BuildTargetDependencySources
impl Unpin for BuildTargetDependencySources
impl UnwindSafe for BuildTargetDependencySources
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