pub struct Utf16Offset(/* private fields */);Expand description
0-based UTF-16 code-unit offset into source text.
Implementations§
Trait Implementations§
Source§impl Clone for Utf16Offset
impl Clone for Utf16Offset
Source§fn clone(&self) -> Utf16Offset
fn clone(&self) -> Utf16Offset
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 moreSource§impl Coordinate for Utf16Offset
impl Coordinate for Utf16Offset
impl Copy for Utf16Offset
Source§impl Debug for Utf16Offset
impl Debug for Utf16Offset
Source§impl Display for Utf16Offset
impl Display for Utf16Offset
impl Eq for Utf16Offset
Source§impl Hash for Utf16Offset
impl Hash for Utf16Offset
Source§impl Ord for Utf16Offset
impl Ord for Utf16Offset
Source§fn cmp(&self, other: &Utf16Offset) -> Ordering
fn cmp(&self, other: &Utf16Offset) -> 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 Utf16Offset
impl PartialEq for Utf16Offset
Source§fn eq(&self, other: &Utf16Offset) -> bool
fn eq(&self, other: &Utf16Offset) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Utf16Offset
impl PartialOrd for Utf16Offset
impl StructuralPartialEq for Utf16Offset
Auto Trait Implementations§
impl Freeze for Utf16Offset
impl RefUnwindSafe for Utf16Offset
impl Send for Utf16Offset
impl Sync for Utf16Offset
impl Unpin for Utf16Offset
impl UnsafeUnpin for Utf16Offset
impl UnwindSafe for Utf16Offset
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