Struct language2::OffsetUtf16
source · pub struct OffsetUtf16(pub usize);
Tuple Fields§
§0: usize
Trait Implementations§
source§impl<'a> Add<&'a OffsetUtf16> for OffsetUtf16
impl<'a> Add<&'a OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
+
operator.source§fn add(
self,
other: &'a OffsetUtf16
) -> <OffsetUtf16 as Add<&'a OffsetUtf16>>::Output
fn add( self, other: &'a OffsetUtf16 ) -> <OffsetUtf16 as Add<&'a OffsetUtf16>>::Output
Performs the
+
operation. Read moresource§impl Add<OffsetUtf16> for OffsetUtf16
impl Add<OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
+
operator.source§fn add(self, other: OffsetUtf16) -> <OffsetUtf16 as Add<OffsetUtf16>>::Output
fn add(self, other: OffsetUtf16) -> <OffsetUtf16 as Add<OffsetUtf16>>::Output
Performs the
+
operation. Read moresource§impl<'a> AddAssign<&'a OffsetUtf16> for OffsetUtf16
impl<'a> AddAssign<&'a OffsetUtf16> for OffsetUtf16
source§fn add_assign(&mut self, other: &'a OffsetUtf16)
fn add_assign(&mut self, other: &'a OffsetUtf16)
Performs the
+=
operation. Read moresource§impl AddAssign<OffsetUtf16> for OffsetUtf16
impl AddAssign<OffsetUtf16> for OffsetUtf16
source§fn add_assign(&mut self, other: OffsetUtf16)
fn add_assign(&mut self, other: OffsetUtf16)
Performs the
+=
operation. Read moresource§impl Clone for OffsetUtf16
impl Clone for OffsetUtf16
source§fn clone(&self) -> OffsetUtf16
fn clone(&self) -> OffsetUtf16
Returns a copy 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 OffsetUtf16
impl Debug for OffsetUtf16
source§impl Default for OffsetUtf16
impl Default for OffsetUtf16
source§fn default() -> OffsetUtf16
fn default() -> OffsetUtf16
Returns the “default value” for a type. Read more
source§impl<'a> Dimension<'a, ChunkSummary> for OffsetUtf16
impl<'a> Dimension<'a, ChunkSummary> for OffsetUtf16
fn add_summary(&mut self, summary: &'a ChunkSummary, _: &())
fn from_summary(summary: &'a S, cx: &<S as Summary>::Context) -> Self
source§impl Ord for OffsetUtf16
impl Ord for OffsetUtf16
source§fn cmp(&self, other: &OffsetUtf16) -> Ordering
fn cmp(&self, other: &OffsetUtf16) -> Ordering
1.21.0 · 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<OffsetUtf16> for OffsetUtf16
impl PartialEq<OffsetUtf16> for OffsetUtf16
source§fn eq(&self, other: &OffsetUtf16) -> bool
fn eq(&self, other: &OffsetUtf16) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OffsetUtf16> for OffsetUtf16
impl PartialOrd<OffsetUtf16> for OffsetUtf16
source§fn partial_cmp(&self, other: &OffsetUtf16) -> Option<Ordering>
fn partial_cmp(&self, other: &OffsetUtf16) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Sub<&'a OffsetUtf16> for OffsetUtf16
impl<'a> Sub<&'a OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
-
operator.source§fn sub(
self,
other: &'a OffsetUtf16
) -> <OffsetUtf16 as Sub<&'a OffsetUtf16>>::Output
fn sub( self, other: &'a OffsetUtf16 ) -> <OffsetUtf16 as Sub<&'a OffsetUtf16>>::Output
Performs the
-
operation. Read moresource§impl Sub<OffsetUtf16> for OffsetUtf16
impl Sub<OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
-
operator.source§fn sub(self, other: OffsetUtf16) -> <OffsetUtf16 as Sub<OffsetUtf16>>::Output
fn sub(self, other: OffsetUtf16) -> <OffsetUtf16 as Sub<OffsetUtf16>>::Output
Performs the
-
operation. Read moresource§impl TextDimension for OffsetUtf16
impl TextDimension for OffsetUtf16
fn from_text_summary(summary: &TextSummary) -> OffsetUtf16
fn add_assign(&mut self, other: &OffsetUtf16)
source§impl ToOffsetUtf16 for OffsetUtf16
impl ToOffsetUtf16 for OffsetUtf16
fn to_offset_utf16(&self, _snapshot: &BufferSnapshot) -> OffsetUtf16
impl Copy for OffsetUtf16
impl Eq for OffsetUtf16
impl StructuralEq for OffsetUtf16
impl StructuralPartialEq for OffsetUtf16
Auto Trait Implementations§
impl RefUnwindSafe for OffsetUtf16
impl Send for OffsetUtf16
impl Sync for OffsetUtf16
impl Unpin for OffsetUtf16
impl UnwindSafe for OffsetUtf16
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.