Struct text2::OffsetUtf16
pub struct OffsetUtf16(pub usize);
Tuple Fields§
§0: usize
Trait Implementations§
§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.§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 more§impl Add<OffsetUtf16> for OffsetUtf16
impl Add<OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
+
operator.§fn add(self, other: OffsetUtf16) -> <OffsetUtf16 as Add<OffsetUtf16>>::Output
fn add(self, other: OffsetUtf16) -> <OffsetUtf16 as Add<OffsetUtf16>>::Output
Performs the
+
operation. Read more§impl<'a> AddAssign<&'a OffsetUtf16> for OffsetUtf16
impl<'a> AddAssign<&'a OffsetUtf16> for OffsetUtf16
§fn add_assign(&mut self, other: &'a OffsetUtf16)
fn add_assign(&mut self, other: &'a OffsetUtf16)
Performs the
+=
operation. Read more§impl AddAssign<OffsetUtf16> for OffsetUtf16
impl AddAssign<OffsetUtf16> for OffsetUtf16
§fn add_assign(&mut self, other: OffsetUtf16)
fn add_assign(&mut self, other: OffsetUtf16)
Performs the
+=
operation. Read more§impl Clone for OffsetUtf16
impl Clone for OffsetUtf16
§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 more§impl Debug for OffsetUtf16
impl Debug for OffsetUtf16
§impl Default for OffsetUtf16
impl Default for OffsetUtf16
§fn default() -> OffsetUtf16
fn default() -> OffsetUtf16
Returns the “default value” for a type. Read more
§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
§impl Ord for OffsetUtf16
impl Ord for OffsetUtf16
§impl PartialEq<OffsetUtf16> for OffsetUtf16
impl PartialEq<OffsetUtf16> for OffsetUtf16
§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 ==
.§impl PartialOrd<OffsetUtf16> for OffsetUtf16
impl PartialOrd<OffsetUtf16> for OffsetUtf16
§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 more§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.§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 more§impl Sub<OffsetUtf16> for OffsetUtf16
impl Sub<OffsetUtf16> for OffsetUtf16
§type Output = OffsetUtf16
type Output = OffsetUtf16
The resulting type after applying the
-
operator.§fn sub(self, other: OffsetUtf16) -> <OffsetUtf16 as Sub<OffsetUtf16>>::Output
fn sub(self, other: OffsetUtf16) -> <OffsetUtf16 as Sub<OffsetUtf16>>::Output
Performs the
-
operation. Read more§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.