pub struct Settings { /* private fields */ }Expand description
Everything the command line has to say about how rust-analyzer should run.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn enable_all_features(&mut self) -> Result<()>
pub fn enable_all_features(&mut self) -> Result<()>
Enables every feature.
Sourcepub fn enable_features(&mut self, list: &str) -> Result<()>
pub fn enable_features(&mut self, list: &str) -> Result<()>
Enables the features list names, comma- or space-separated.
Sourcepub fn disable_default_features(&mut self) -> Result<()>
pub fn disable_default_features(&mut self) -> Result<()>
Leaves the manifest’s default features out.
Sourcepub fn set(&mut self, assignment: &str) -> Result<()>
pub fn set(&mut self, assignment: &str) -> Result<()>
Sets one rust-analyzer setting outright, from a key.path=value as it is spelled on the
command line.
The value is read as JSON, and taken for a string when it is not any other JSON value –
so check.command=clippy means what it looks like it means.
Trait Implementations§
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more