pub enum Location {
Abs(usize),
Rel(isize),
}Variants§
Implementations§
Source§impl Location
impl Location
Sourcepub fn Back(cb: &CursorBuffer) -> Location
pub fn Back(cb: &CursorBuffer) -> Location
Location at end of buffer
Sourcepub fn FindChar(cb: &CursorBuffer, start: Location, c: char) -> Option<Location>
pub fn FindChar(cb: &CursorBuffer, start: Location, c: char) -> Option<Location>
Location of the next occurrence of character
Sourcepub fn Find<P>(
cb: &CursorBuffer,
start: Location,
predicate: P,
) -> Option<Location>
pub fn Find<P>( cb: &CursorBuffer, start: Location, predicate: P, ) -> Option<Location>
Location of the next occurrence of predicate
Sourcepub fn FindCharBack(
cb: &CursorBuffer,
start: Location,
c: char,
) -> Option<Location>
pub fn FindCharBack( cb: &CursorBuffer, start: Location, c: char, ) -> Option<Location>
Location of the previous occurrence of character
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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