pub struct ScalarOffset(/* private fields */);Expand description
Checked exact-text offset types owned by sim-text.
An offset in the Unicode scalar sequence.
Implementations§
Source§impl ScalarOffset
impl ScalarOffset
Trait Implementations§
Source§impl Clone for ScalarOffset
impl Clone for ScalarOffset
Source§fn clone(&self) -> ScalarOffset
fn clone(&self) -> ScalarOffset
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 ScalarOffset
Source§impl Debug for ScalarOffset
impl Debug for ScalarOffset
Source§impl Default for ScalarOffset
impl Default for ScalarOffset
Source§fn default() -> ScalarOffset
fn default() -> ScalarOffset
Returns the “default value” for a type. Read more
impl Eq for ScalarOffset
Source§impl Hash for ScalarOffset
impl Hash for ScalarOffset
Source§impl Ord for ScalarOffset
impl Ord for ScalarOffset
Source§fn cmp(&self, other: &ScalarOffset) -> Ordering
fn cmp(&self, other: &ScalarOffset) -> 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 ScalarOffset
impl PartialEq for ScalarOffset
Source§impl PartialOrd for ScalarOffset
impl PartialOrd for ScalarOffset
impl StructuralPartialEq for ScalarOffset
Auto Trait Implementations§
impl Freeze for ScalarOffset
impl RefUnwindSafe for ScalarOffset
impl Send for ScalarOffset
impl Sync for ScalarOffset
impl Unpin for ScalarOffset
impl UnsafeUnpin for ScalarOffset
impl UnwindSafe for ScalarOffset
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