pub struct LineColUtf16 {
pub line: u32,
pub col: u32,
}Expand description
A line and column index pair, both 0-based, for the UTF-16 encoding of the source text.
Fields§
§line: u32§col: u32Trait Implementations§
Source§impl Clone for LineColUtf16
impl Clone for LineColUtf16
Source§fn clone(&self) -> LineColUtf16
fn clone(&self) -> LineColUtf16
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 LineColUtf16
Source§impl Debug for LineColUtf16
impl Debug for LineColUtf16
impl Eq for LineColUtf16
Source§impl Ord for LineColUtf16
impl Ord for LineColUtf16
Source§fn cmp(&self, other: &LineColUtf16) -> Ordering
fn cmp(&self, other: &LineColUtf16) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LineColUtf16
impl PartialEq for LineColUtf16
Source§fn eq(&self, other: &LineColUtf16) -> bool
fn eq(&self, other: &LineColUtf16) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LineColUtf16
impl PartialOrd for LineColUtf16
impl StructuralPartialEq for LineColUtf16
Auto Trait Implementations§
impl Freeze for LineColUtf16
impl RefUnwindSafe for LineColUtf16
impl Send for LineColUtf16
impl Sync for LineColUtf16
impl Unpin for LineColUtf16
impl UnsafeUnpin for LineColUtf16
impl UnwindSafe for LineColUtf16
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