pub struct Length {
pub line_count: usize,
pub byte_count: usize,
}
Fields§
§line_count: usize
§byte_count: usize
Implementations§
Trait Implementations§
Source§impl AddAssign<Length> for Position
impl AddAssign<Length> for Position
Source§fn add_assign(&mut self, length: Length)
fn add_assign(&mut self, length: Length)
Performs the
+=
operation. Read moreSource§impl AddAssign for Length
impl AddAssign for Length
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl Ord for Length
impl Ord for Length
Source§impl PartialOrd for Length
impl PartialOrd for Length
Source§impl SubAssign for Length
impl SubAssign for Length
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Length
impl Eq for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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