#[repr(C)]pub struct rbs_position_t {
pub byte_pos: c_int,
pub char_pos: c_int,
pub line: c_int,
pub column: c_int,
}Expand description
The byte_pos (or char_pos) is the primary data.
The rest are cache.
They can be computed from byte_pos (or char_pos), but it needs full scan from the beginning of the string (depending on the encoding).
Fields§
§byte_pos: c_int§char_pos: c_int§line: c_int§column: c_intTrait Implementations§
Source§impl Clone for rbs_position_t
impl Clone for rbs_position_t
Source§fn clone(&self) -> rbs_position_t
fn clone(&self) -> rbs_position_t
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 rbs_position_t
impl Debug for rbs_position_t
impl Copy for rbs_position_t
Auto Trait Implementations§
impl Freeze for rbs_position_t
impl RefUnwindSafe for rbs_position_t
impl Send for rbs_position_t
impl Sync for rbs_position_t
impl Unpin for rbs_position_t
impl UnsafeUnpin for rbs_position_t
impl UnwindSafe for rbs_position_t
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