Struct bsp_types::BuildTargetSources
source · [−]pub struct BuildTargetSources { /* private fields */ }Expand description
The build target sources request is sent from the client to the server to query for the list of text documents and directories that are belong to a build target. The sources response must not include sources that are external to the workspace.
Implementations
sourceimpl BuildTargetSources
impl BuildTargetSources
pub fn new(targets: Vec<BuildTargetIdentifier>) -> Self
sourcepub fn targets(&self) -> &[BuildTargetIdentifier]
pub fn targets(&self) -> &[BuildTargetIdentifier]
Get a reference to the bsp sources params’s targets.
sourcepub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
pub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
Set the bsp sources params’s targets.
Trait Implementations
sourceimpl Clone for BuildTargetSources
impl Clone for BuildTargetSources
sourcefn clone(&self) -> BuildTargetSources
fn clone(&self) -> BuildTargetSources
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 BuildTargetSources
impl Debug for BuildTargetSources
sourceimpl Default for BuildTargetSources
impl Default for BuildTargetSources
sourcefn default() -> BuildTargetSources
fn default() -> BuildTargetSources
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BuildTargetSources
impl<'de> Deserialize<'de> for BuildTargetSources
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 Serialize for BuildTargetSources
impl Serialize for BuildTargetSources
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetSources
impl Send for BuildTargetSources
impl Sync for BuildTargetSources
impl Unpin for BuildTargetSources
impl UnwindSafe for BuildTargetSources
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more