Enum ra_ap_ide::AssistResolveStrategy
source · pub enum AssistResolveStrategy {
None,
All,
Single(SingleResolve),
}
Expand description
A way to control how many assist to resolve during the assist resolution. When an assist is resolved, its edits are calculated that might be costly to always do by default.
Variants§
None
No assists should be resolved.
All
All assists should be resolved.
Single(SingleResolve)
Only a certain assist should be resolved.
Implementations§
source§impl AssistResolveStrategy
impl AssistResolveStrategy
pub fn should_resolve(&self, id: &AssistId) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssistResolveStrategy
impl RefUnwindSafe for AssistResolveStrategy
impl Send for AssistResolveStrategy
impl Sync for AssistResolveStrategy
impl Unpin for AssistResolveStrategy
impl UnwindSafe for AssistResolveStrategy
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.