pub enum TagAddress {
Line(usize),
Pattern(String),
Chained(Vec<TagAddress>),
Unsupported(String),
}Variants§
Line(usize)
1-based line number, as stored in the tags file.
Pattern(String)
ctags /pattern/ or ?pattern? with the delimiters stripped.
Chained(Vec<TagAddress>)
Sequence of addresses joined by ;. Each step is resolved against
the file starting from the line found by the previous step.
Example: /^anchor$/;/secondary/ searches for secondary starting
after the line matched by ^anchor$.
Unsupported(String)
Address form we don’t support yet (e.g. :s/foo/bar/, multi-command
ex addresses). Resolution falls back to line 1 and surfaces a
[tag address not supported: <raw>] status hint.
Trait Implementations§
Source§impl Clone for TagAddress
impl Clone for TagAddress
Source§fn clone(&self) -> TagAddress
fn clone(&self) -> TagAddress
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 TagAddress
impl Debug for TagAddress
Source§impl PartialEq for TagAddress
impl PartialEq for TagAddress
Source§fn eq(&self, other: &TagAddress) -> bool
fn eq(&self, other: &TagAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TagAddress
impl StructuralPartialEq for TagAddress
Auto Trait Implementations§
impl Freeze for TagAddress
impl RefUnwindSafe for TagAddress
impl Send for TagAddress
impl Sync for TagAddress
impl Unpin for TagAddress
impl UnsafeUnpin for TagAddress
impl UnwindSafe for TagAddress
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.