pub struct LineOffset(pub RawOffset);Expand description
A line offset in a source file
Tuple Fields§
§0: RawOffsetTrait Implementations§
Source§impl Add<LineOffset> for LineIndex
impl Add<LineOffset> for LineIndex
Source§impl Add for LineOffset
impl Add for LineOffset
Source§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
+ operator.Source§fn add(self, rhs: LineOffset) -> LineOffset
fn add(self, rhs: LineOffset) -> LineOffset
Performs the
+ operation. Read moreSource§impl AddAssign<LineOffset> for LineIndex
impl AddAssign<LineOffset> for LineIndex
Source§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+= operation. Read moreSource§impl AddAssign for LineOffset
impl AddAssign for LineOffset
Source§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+= operation. Read moreSource§impl Clone for LineOffset
impl Clone for LineOffset
Source§fn clone(&self) -> LineOffset
fn clone(&self) -> LineOffset
Returns a duplicate 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 LineOffset
impl Debug for LineOffset
Source§impl Default for LineOffset
impl Default for LineOffset
Source§fn default() -> LineOffset
fn default() -> LineOffset
Returns the “default value” for a type. Read more
Source§impl Display for LineOffset
impl Display for LineOffset
Source§impl From<LineOffset> for RawOffset
impl From<LineOffset> for RawOffset
Source§fn from(offset: LineOffset) -> RawOffset
fn from(offset: LineOffset) -> RawOffset
Converts to this type from the input type.
Source§impl From<LineOffset> for usize
impl From<LineOffset> for usize
Source§fn from(offset: LineOffset) -> usize
fn from(offset: LineOffset) -> usize
Converts to this type from the input type.
Source§impl From<i64> for LineOffset
impl From<i64> for LineOffset
Source§impl Hash for LineOffset
impl Hash for LineOffset
Source§impl Neg for LineOffset
impl Neg for LineOffset
Source§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
- operator.Source§fn neg(self) -> LineOffset
fn neg(self) -> LineOffset
Performs the unary
- operation. Read moreSource§impl Offset for LineOffset
impl Offset for LineOffset
const ZERO: LineOffset
Source§impl Ord for LineOffset
impl Ord for LineOffset
Source§fn cmp(&self, other: &LineOffset) -> Ordering
fn cmp(&self, other: &LineOffset) -> 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 for LineOffset
impl PartialEq for LineOffset
Source§impl PartialOrd for LineOffset
impl PartialOrd for LineOffset
Source§impl Sub<LineOffset> for LineIndex
impl Sub<LineOffset> for LineIndex
Source§impl Sub for LineOffset
impl Sub for LineOffset
Source§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
- operator.Source§fn sub(self, rhs: LineOffset) -> LineOffset
fn sub(self, rhs: LineOffset) -> LineOffset
Performs the
- operation. Read moreSource§impl SubAssign<LineOffset> for LineIndex
impl SubAssign<LineOffset> for LineIndex
Source§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-= operation. Read moreSource§impl SubAssign for LineOffset
impl SubAssign for LineOffset
Source§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-= operation. Read moreimpl Copy for LineOffset
impl Eq for LineOffset
impl StructuralPartialEq for LineOffset
Auto Trait Implementations§
impl Freeze for LineOffset
impl RefUnwindSafe for LineOffset
impl Send for LineOffset
impl Sync for LineOffset
impl Unpin for LineOffset
impl UnwindSafe for LineOffset
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