pub struct TextCursor {
pub utf8_offset: usize,
pub affinity: TextAffinity,
}Fields§
§utf8_offset: usize§affinity: TextAffinityImplementations§
Source§impl TextCursor
impl TextCursor
pub const fn new(utf8_offset: usize) -> Self
pub const fn with_affinity(self, affinity: TextAffinity) -> Self
Trait Implementations§
Source§impl Clone for TextCursor
impl Clone for TextCursor
impl Copy for TextCursor
Source§impl Debug for TextCursor
impl Debug for TextCursor
Source§impl Default for TextCursor
impl Default for TextCursor
impl Eq for TextCursor
Source§impl PartialEq for TextCursor
impl PartialEq for TextCursor
impl StructuralPartialEq for TextCursor
Auto Trait Implementations§
impl Forget for TextCursor
impl Freeze for TextCursor
impl Move for TextCursor
impl RefUnwindSafe for TextCursor
impl Send for TextCursor
impl Sync for TextCursor
impl Unpin for TextCursor
impl UnsafeUnpin for TextCursor
impl UnwindSafe for TextCursor
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