pub struct MethodResult {
pub method: Method,
pub definition: Option<Definition>,
}Expand description
A method paired with its optional source location.
Returned by MethodQuery::run_with_definitions and
query_definition_for_methods. The definition field is None when
rust-analyzer has no source location for the method (e.g. compiler
built-ins) the method is still included in results.
Fields§
§method: MethodThe method returned by the completion query.
definition: Option<Definition>The source location of the method, if resolvable.
Auto Trait Implementations§
impl Freeze for MethodResult
impl RefUnwindSafe for MethodResult
impl Send for MethodResult
impl Sync for MethodResult
impl Unpin for MethodResult
impl UnsafeUnpin for MethodResult
impl UnwindSafe for MethodResult
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