pub struct TextTarget { /* private fields */ }Expand description
A text location relative to the cursor of a TextEdit
Implementations§
Source§impl TextTarget
impl TextTarget
Sourcepub fn forward(element: TextElement) -> Self
pub fn forward(element: TextElement) -> Self
Construct a target after the cursor
Sourcepub fn backward(element: TextElement) -> Self
pub fn backward(element: TextElement) -> Self
Construct a target before the cursor
Trait Implementations§
Source§impl Clone for TextTarget
impl Clone for TextTarget
Source§fn clone(&self) -> TextTarget
fn clone(&self) -> TextTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextTarget
Auto Trait Implementations§
impl Freeze for TextTarget
impl RefUnwindSafe for TextTarget
impl Send for TextTarget
impl Sync for TextTarget
impl Unpin for TextTarget
impl UnwindSafe for TextTarget
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