pub struct BidiMapper {
pub forward: Vec<(usize, usize)>,
pub backward: Vec<(usize, usize)>,
}Expand description
A bidirectional position mapper between two source representations.
Fields§
§forward: Vec<(usize, usize)>Forward mappings (original offset -> generated offset)
backward: Vec<(usize, usize)>Backward mappings (generated offset -> original offset)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BidiMapper
impl RefUnwindSafe for BidiMapper
impl Send for BidiMapper
impl Sync for BidiMapper
impl Unpin for BidiMapper
impl UnsafeUnpin for BidiMapper
impl UnwindSafe for BidiMapper
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