pub struct SymbolMatch {
pub name: String,
pub kind: SymbolKind,
pub kind_prefix: &'static str,
pub start_line: usize,
pub end_line: usize,
}Fields§
§name: String§kind: SymbolKind§kind_prefix: &'static str§start_line: usize§end_line: usizeImplementations§
Source§impl SymbolMatch
impl SymbolMatch
pub fn canonical_selector( &self, file_path: &Path, project_root: &Path, ) -> String
pub fn source_from(&self, content: &str) -> String
Trait Implementations§
Source§impl Clone for SymbolMatch
impl Clone for SymbolMatch
Source§fn clone(&self) -> SymbolMatch
fn clone(&self) -> SymbolMatch
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 SymbolMatch
impl Debug for SymbolMatch
impl Eq for SymbolMatch
Source§impl PartialEq for SymbolMatch
impl PartialEq for SymbolMatch
impl StructuralPartialEq for SymbolMatch
Auto Trait Implementations§
impl Freeze for SymbolMatch
impl RefUnwindSafe for SymbolMatch
impl Send for SymbolMatch
impl Sync for SymbolMatch
impl Unpin for SymbolMatch
impl UnsafeUnpin for SymbolMatch
impl UnwindSafe for SymbolMatch
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.