pub enum AddrBase {
}Expand description
Primitives for building out addresses.
Line and column indices are 1-based to match the editor line numbering and common output formats from popular compilers and other command line tooling. Internally these indices are converted to be 0-based to match the internal representation of ad’s Dot.
Variants§
Current
.
CurrentLine
-+ | +-
Bol
Eol
Bof
0
Eof
$
Line(usize)
n
RelativeLine(isize)
-/+n
Char(usize)
#n
RelativeChar(isize)
-/+#n
LineAndColumn(usize, usize)
n:m
Regex(Regex)
/re/ or +/re/
RegexBack(RevRegex)
-/re/
Trait Implementations§
impl Eq for AddrBase
Source§impl From<AddrBase> for SimpleAddr
impl From<AddrBase> for SimpleAddr
impl StructuralPartialEq for AddrBase
Auto Trait Implementations§
impl !Freeze for AddrBase
impl RefUnwindSafe for AddrBase
impl Send for AddrBase
impl Sync for AddrBase
impl Unpin for AddrBase
impl UnsafeUnpin for AddrBase
impl UnwindSafe for AddrBase
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.