pub struct Mapping { /* private fields */ }Expand description
A composable pipeline of StepMaps, with optional mirror links so a
position can be recovered when mapped through a map and its mirror.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn append_map(&mut self, map: StepMap)
pub fn append_map(&mut self, map: StepMap)
Append a map to the pipeline.
Sourcepub fn append_map_mirrored(&mut self, map: StepMap, mirrors: usize)
pub fn append_map_mirrored(&mut self, map: StepMap, mirrors: usize)
Append map, mirrored against the existing map at index mirrors.
Sourcepub fn map_result(&self, pos: usize, assoc: i32) -> MapResult
pub fn map_result(&self, pos: usize, assoc: i32) -> MapResult
Map pos, skipping across mirrored map pairs via recovery so a
position survives a step followed by its inverse.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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