Struct bsp_types::BuildTargetDependencySources
source · [−]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
sourceimpl 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
sourceimpl Clone for BuildTargetDependencySources
impl Clone for BuildTargetDependencySources
sourcefn clone(&self) -> BuildTargetDependencySources
fn clone(&self) -> BuildTargetDependencySources
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BuildTargetDependencySources
impl Debug for BuildTargetDependencySources
sourceimpl<'de> Deserialize<'de> for BuildTargetDependencySources
impl<'de> Deserialize<'de> for BuildTargetDependencySources
sourcefn 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
sourceimpl PartialEq<BuildTargetDependencySources> for BuildTargetDependencySources
impl PartialEq<BuildTargetDependencySources> for BuildTargetDependencySources
sourcefn eq(&self, other: &BuildTargetDependencySources) -> bool
fn eq(&self, other: &BuildTargetDependencySources) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BuildTargetDependencySources) -> bool
fn ne(&self, other: &BuildTargetDependencySources) -> bool
This method tests for !=.
impl Eq for BuildTargetDependencySources
impl StructuralEq for BuildTargetDependencySources
impl StructuralPartialEq for BuildTargetDependencySources
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetDependencySources
impl Send for BuildTargetDependencySources
impl Sync for BuildTargetDependencySources
impl Unpin for BuildTargetDependencySources
impl UnwindSafe for BuildTargetDependencySources
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more