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§
Source§impl From<AddrBase> for SimpleAddr
impl From<AddrBase> for SimpleAddr
impl Eq for AddrBase
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 UnwindSafe for AddrBase
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.