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
Source§fn clone(&self) -> TextCursor
fn clone(&self) -> TextCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextCursor
Source§impl Debug for TextCursor
impl Debug for TextCursor
Source§impl Default for TextCursor
impl Default for TextCursor
Source§fn default() -> TextCursor
fn default() -> TextCursor
Returns the “default value” for a type. Read more
impl Eq for TextCursor
Source§impl PartialEq for TextCursor
impl PartialEq for TextCursor
impl StructuralPartialEq for TextCursor
Auto Trait Implementations§
impl Freeze 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