Struct bsp_types::TextDocumentInverseSources
source · [−]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
sourceimpl 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
sourceimpl Clone for TextDocumentInverseSources
impl Clone for TextDocumentInverseSources
sourcefn clone(&self) -> TextDocumentInverseSources
fn clone(&self) -> TextDocumentInverseSources
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 TextDocumentInverseSources
impl Debug for TextDocumentInverseSources
sourceimpl<'de> Deserialize<'de> for TextDocumentInverseSources
impl<'de> Deserialize<'de> for TextDocumentInverseSources
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<TextDocumentInverseSources> for TextDocumentInverseSources
impl PartialEq<TextDocumentInverseSources> for TextDocumentInverseSources
sourcefn eq(&self, other: &TextDocumentInverseSources) -> bool
fn eq(&self, other: &TextDocumentInverseSources) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TextDocumentInverseSources) -> bool
fn ne(&self, other: &TextDocumentInverseSources) -> bool
This method tests for !=.
impl Eq for TextDocumentInverseSources
impl StructuralEq for TextDocumentInverseSources
impl StructuralPartialEq for TextDocumentInverseSources
Auto Trait Implementations
impl RefUnwindSafe for TextDocumentInverseSources
impl Send for TextDocumentInverseSources
impl Sync for TextDocumentInverseSources
impl Unpin for TextDocumentInverseSources
impl UnwindSafe for TextDocumentInverseSources
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