pub struct TextDocumentInverseSources { /* private fields */ }Expand description
The inverse sources request is sent from the client to the server to query for the list of build targets containing a text document. The server communicates during the initialize handshake whether this method is supported or not. This request can be viewed as the inverse of buildTarget/sources, except it only works for text documents and not directories.
Implementations§
Source§impl TextDocumentInverseSources
impl TextDocumentInverseSources
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 TextDocumentInverseSources
impl Clone for TextDocumentInverseSources
Source§fn clone(&self) -> TextDocumentInverseSources
fn clone(&self) -> TextDocumentInverseSources
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 TextDocumentInverseSources
impl Debug for TextDocumentInverseSources
Source§impl<'de> Deserialize<'de> for TextDocumentInverseSources
impl<'de> Deserialize<'de> for TextDocumentInverseSources
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
impl Eq for TextDocumentInverseSources
impl StructuralPartialEq for TextDocumentInverseSources
Auto Trait Implementations§
impl Freeze for TextDocumentInverseSources
impl RefUnwindSafe for TextDocumentInverseSources
impl Send for TextDocumentInverseSources
impl Sync for TextDocumentInverseSources
impl Unpin for TextDocumentInverseSources
impl UnwindSafe for TextDocumentInverseSources
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