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 Forget for VerticalCaretMovementRun
impl Freeze for VerticalCaretMovementRunwhere
NonZero<u32>: Freeze,
PhantomData<fn() -> RenderEditable>: Freeze,
*const u8 is !null: Freeze,
PhantomData<LineMetrics>: Freeze,
PhantomData<(i32, (Offset, TextPosition))>: Freeze,
impl Move for VerticalCaretMovementRun
impl RefUnwindSafe for VerticalCaretMovementRun
impl Send for VerticalCaretMovementRun
impl Sync for VerticalCaretMovementRun
impl Unpin for VerticalCaretMovementRun
impl UnsafeUnpin for VerticalCaretMovementRunwhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> RenderEditable>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<LineMetrics>: UnsafeUnpin,
PhantomData<(i32, (Offset, TextPosition))>: UnsafeUnpin,
impl UnwindSafe for VerticalCaretMovementRunwhere
NonZero<u32>: UnwindSafe,
RawVecInner: UnwindSafe,
HashMap<i32, (Offset, TextPosition)>: UnwindSafe,
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