pub struct Utf16Range {
pub start: Utf16Position,
pub end: Utf16Position,
}Expand description
A UTF-16 range (start..end) in (line, character) coordinates.
Fields§
§start: Utf16PositionRange start position (inclusive).
end: Utf16PositionRange end position (exclusive).
Implementations§
Source§impl Utf16Range
impl Utf16Range
Sourcepub fn new(start: Utf16Position, end: Utf16Position) -> Self
pub fn new(start: Utf16Position, end: Utf16Position) -> Self
Create a new UTF-16 range.
Trait Implementations§
Source§impl Clone for Utf16Range
impl Clone for Utf16Range
Source§fn clone(&self) -> Utf16Range
fn clone(&self) -> Utf16Range
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 moreSource§impl Debug for Utf16Range
impl Debug for Utf16Range
Source§impl PartialEq for Utf16Range
impl PartialEq for Utf16Range
impl Copy for Utf16Range
impl Eq for Utf16Range
impl StructuralPartialEq for Utf16Range
Auto Trait Implementations§
impl Freeze for Utf16Range
impl RefUnwindSafe for Utf16Range
impl Send for Utf16Range
impl Sync for Utf16Range
impl Unpin for Utf16Range
impl UnsafeUnpin for Utf16Range
impl UnwindSafe for Utf16Range
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