pub struct CursorPosition {
pub cursor: Option<(u16, u16)>,
pub local_x: usize,
pub local_byte_index: usize,
pub block_index: usize,
pub local_block_index: usize,
pub line_index: usize,
pub line_byte_index: usize,
pub global_byte_index: usize,
pub high_byte: bool,
}Fields§
§cursor: Option<(u16, u16)>§local_x: usize§local_byte_index: usize§block_index: usize§local_block_index: usize§line_index: usize§line_byte_index: usize§global_byte_index: usize§high_byte: boolImplementations§
Source§impl CursorPosition
impl CursorPosition
pub fn get_high_byte_offset(&self) -> usize
Auto Trait Implementations§
impl Freeze for CursorPosition
impl RefUnwindSafe for CursorPosition
impl Send for CursorPosition
impl Sync for CursorPosition
impl Unpin for CursorPosition
impl UnwindSafe for CursorPosition
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more