pub struct CharIdx(pub usize);Expand description
A 0-based character index (Unicode scalar value index).
In ropey, most cursor-safe indexing is done in char indices (not bytes).
Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Source§impl Ord for CharIdx
impl Ord for CharIdx
Source§impl PartialOrd for CharIdx
impl PartialOrd for CharIdx
impl Copy for CharIdx
impl Eq for CharIdx
impl StructuralPartialEq for CharIdx
Auto Trait Implementations§
impl Freeze for CharIdx
impl RefUnwindSafe for CharIdx
impl Send for CharIdx
impl Sync for CharIdx
impl Unpin for CharIdx
impl UnsafeUnpin for CharIdx
impl UnwindSafe for CharIdx
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