pub enum RustAnalyzerArg {
Path(Utf8PathBuf),
Buildfile(Utf8PathBuf),
}
Expand description
The argument that rust-analyzer
can pass to the workspace discovery command.
Variants§
Path(Utf8PathBuf)
Buildfile(Utf8PathBuf)
Implementations§
Source§impl RustAnalyzerArg
impl RustAnalyzerArg
Sourcepub fn into_target_details(
self,
workspace: &Utf8Path,
) -> Result<(Utf8PathBuf, String)>
pub fn into_target_details( self, workspace: &Utf8Path, ) -> Result<(Utf8PathBuf, String)>
Consumes itself to return a build file and the targets to build.
Trait Implementations§
Source§impl Clone for RustAnalyzerArg
impl Clone for RustAnalyzerArg
Source§fn clone(&self) -> RustAnalyzerArg
fn clone(&self) -> RustAnalyzerArg
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 RustAnalyzerArg
impl Debug for RustAnalyzerArg
Source§impl<'de> Deserialize<'de> for RustAnalyzerArg
impl<'de> Deserialize<'de> for RustAnalyzerArg
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§#[doc(hidden)] fn deserialize_in_place<D>(
deserializer: D,
place: &mut Self,
) -> Result<(), <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
#[doc(hidden)] fn deserialize_in_place<D>(
deserializer: D,
place: &mut Self,
) -> Result<(), <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes a value into
self
from the given Deserializer. Read moreSource§impl FromStr for RustAnalyzerArg
impl FromStr for RustAnalyzerArg
Auto Trait Implementations§
impl Freeze for RustAnalyzerArg
impl RefUnwindSafe for RustAnalyzerArg
impl Send for RustAnalyzerArg
impl Sync for RustAnalyzerArg
impl Unpin for RustAnalyzerArg
impl UnwindSafe for RustAnalyzerArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more