pub struct VerticalCaretMovementRun { /* private fields */ }Expand description
Starts at a text position and walks vertically through line metrics.
is_valid compares the editable’s layout generation, not
Dart’s identical on the metrics list.
Implementations§
Source§impl VerticalCaretMovementRun
impl VerticalCaretMovementRun
Sourcepub fn current(&self) -> TextPosition
pub fn current(&self) -> TextPosition
The current text position.
Sourcepub fn move_previous(&mut self, app: &App) -> bool
pub fn move_previous(&mut self, app: &App) -> bool
Move back to the previous element.
Sourcepub fn move_by_offset(&mut self, app: &App, offset: f64) -> bool
pub fn move_by_offset(&mut self, app: &App, offset: f64) -> bool
Move forward or backward by a number of elements determined by pixel offset.
Auto Trait Implementations§
impl Freeze for VerticalCaretMovementRun
impl RefUnwindSafe for VerticalCaretMovementRun
impl Send for VerticalCaretMovementRun
impl Sync for VerticalCaretMovementRun
impl Unpin for VerticalCaretMovementRun
impl UnsafeUnpin for VerticalCaretMovementRun
impl UnwindSafe for VerticalCaretMovementRun
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