pub struct ByteOffset(/* private fields */);Implementations§
Trait Implementations§
Source§impl Add<usize> for ByteOffset
impl Add<usize> for ByteOffset
Source§type Output = ByteOffset
type Output = ByteOffset
The resulting type after applying the
+ operator.Source§impl AddAssign<usize> for ByteOffset
impl AddAssign<usize> for ByteOffset
Source§fn add_assign(&mut self, n: usize)
fn add_assign(&mut self, n: usize)
Performs the
+= operation. Read moreSource§impl Clone for ByteOffset
impl Clone for ByteOffset
Source§fn clone(&self) -> ByteOffset
fn clone(&self) -> ByteOffset
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 ByteOffset
Source§impl Debug for ByteOffset
impl Debug for ByteOffset
Source§impl Default for ByteOffset
impl Default for ByteOffset
Source§fn default() -> ByteOffset
fn default() -> ByteOffset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ByteOffset
impl<'de> Deserialize<'de> for ByteOffset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ByteOffset
impl Display for ByteOffset
impl Eq for ByteOffset
Source§impl From<ByteOffset> for usize
impl From<ByteOffset> for usize
Source§fn from(v: ByteOffset) -> usize
fn from(v: ByteOffset) -> usize
Converts to this type from the input type.
Source§impl From<usize> for ByteOffset
impl From<usize> for ByteOffset
Source§fn from(v: usize) -> ByteOffset
fn from(v: usize) -> ByteOffset
Converts to this type from the input type.
Source§impl Hash for ByteOffset
impl Hash for ByteOffset
Source§impl Ord for ByteOffset
impl Ord for ByteOffset
Source§fn cmp(&self, other: &ByteOffset) -> Ordering
fn cmp(&self, other: &ByteOffset) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ByteOffset
impl PartialEq for ByteOffset
Source§impl PartialEq<usize> for ByteOffset
Raw-unit comparison: offset > 0 reads naturally; the type
system still stops offset-vs-line mixes (the bug class).
impl PartialEq<usize> for ByteOffset
Raw-unit comparison: offset > 0 reads naturally; the type
system still stops offset-vs-line mixes (the bug class).
Source§impl PartialOrd for ByteOffset
impl PartialOrd for ByteOffset
Source§impl PartialOrd<usize> for ByteOffset
impl PartialOrd<usize> for ByteOffset
Source§impl Serialize for ByteOffset
impl Serialize for ByteOffset
impl StructuralPartialEq for ByteOffset
Source§impl Sub for ByteOffset
impl Sub for ByteOffset
Source§impl Sub<usize> for ByteOffset
impl Sub<usize> for ByteOffset
Source§type Output = ByteOffset
type Output = ByteOffset
The resulting type after applying the
- operator.Source§impl SubAssign<usize> for ByteOffset
impl SubAssign<usize> for ByteOffset
Source§fn sub_assign(&mut self, n: usize)
fn sub_assign(&mut self, n: usize)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for ByteOffset
impl RefUnwindSafe for ByteOffset
impl Send for ByteOffset
impl Sync for ByteOffset
impl Unpin for ByteOffset
impl UnsafeUnpin for ByteOffset
impl UnwindSafe for ByteOffset
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