[−][src]Struct ra_ap_ide::NavigationTarget
NavigationTarget
represents and element in the editor's UI which you can
click on to navigate to a particular piece of code.
Typically, a NavigationTarget
corresponds to some element in the source
code, like a function or a struct, but this is not strictly required.
Fields
file_id: FileId
full_range: TextRange
Range which encompasses the whole element.
Should include body, doc comments, attributes, etc.
Clients should use this range to answer "is the cursor inside the element?" question.
focus_range: Option<TextRange>
A "most interesting" range withing the full_range
.
Typically, full_range
is the whole syntax node, including doc
comments, and focus_range
is the range of the identifier. "Most
interesting" range within the full range, typically the range of
identifier.
Clients should place the cursor on this range when navigating to this target.
name: SmolStr
kind: SyntaxKind
container_name: Option<SmolStr>
description: Option<String>
docs: Option<String>
Implementations
impl NavigationTarget
[src]
pub fn focus_or_full_range(&self) -> TextRange
[src]
Trait Implementations
impl Clone for NavigationTarget
[src]
pub fn clone(&self) -> NavigationTarget
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NavigationTarget
[src]
impl Eq for NavigationTarget
[src]
impl Hash for NavigationTarget
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NavigationTarget> for NavigationTarget
[src]
pub fn eq(&self, other: &NavigationTarget) -> bool
[src]
pub fn ne(&self, other: &NavigationTarget) -> bool
[src]
impl StructuralEq for NavigationTarget
[src]
impl StructuralPartialEq for NavigationTarget
[src]
Auto Trait Implementations
impl RefUnwindSafe for NavigationTarget
impl Send for NavigationTarget
impl Sync for NavigationTarget
impl Unpin for NavigationTarget
impl UnwindSafe for NavigationTarget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
pub fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Self: CastTo<U>,
U: HasInterner,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,