pub struct CharRange {
pub start: CharIdx,
pub end: CharIdx,
}Expand description
A half-open character range: [start, end).
Invariant expected by users:
start <= end
When working with ropey, indices are in chars (not bytes).
Fields§
§start: CharIdx§end: CharIdxImplementations§
Trait Implementations§
impl Copy for CharRange
impl Eq for CharRange
impl StructuralPartialEq for CharRange
Auto Trait Implementations§
impl Freeze for CharRange
impl RefUnwindSafe for CharRange
impl Send for CharRange
impl Sync for CharRange
impl Unpin for CharRange
impl UnsafeUnpin for CharRange
impl UnwindSafe for CharRange
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