pub struct ParsedSelector {
pub file_path: PathBuf,
pub target: SelectorTarget,
}Expand description
A parsed SCOPE selector. The selector is a positioning DSL: it locates targets/ranges, but it does not encode operation semantics.
Fields§
§file_path: PathBufFile path relative to project root.
target: SelectorTargetParsed selector target.
Implementations§
Source§impl ParsedSelector
impl ParsedSelector
pub const fn as_symbol(&self) -> Option<&SymbolSelector>
Sourcepub fn kind(&self) -> Option<&SymbolKind>
pub fn kind(&self) -> Option<&SymbolKind>
Legacy accessor for callers/tests that still operate on symbol selectors.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Legacy accessor for callers/tests that still operate on symbol selectors.
Sourcepub fn line_range(&self) -> Option<(usize, usize)>
pub fn line_range(&self) -> Option<(usize, usize)>
Legacy accessor for callers/tests that still operate on symbol selectors.
Trait Implementations§
Source§impl Clone for ParsedSelector
impl Clone for ParsedSelector
Source§fn clone(&self) -> ParsedSelector
fn clone(&self) -> ParsedSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedSelector
impl Debug for ParsedSelector
impl Eq for ParsedSelector
Source§impl PartialEq for ParsedSelector
impl PartialEq for ParsedSelector
impl StructuralPartialEq for ParsedSelector
Auto Trait Implementations§
impl Freeze for ParsedSelector
impl RefUnwindSafe for ParsedSelector
impl Send for ParsedSelector
impl Sync for ParsedSelector
impl Unpin for ParsedSelector
impl UnsafeUnpin for ParsedSelector
impl UnwindSafe for ParsedSelector
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.