pub struct PatternLocation {
pub target_index: u32,
pub sorted_positions: Vec<u32>,
}
Expand description
PatternLocation
holds the index of a pattern within a target.
The positions within PatternLocation
should be sorted in ascending order. In general,
these positions are automatically sorted when searching for an index within a target.
Note that the algorithm does not perform reordering.
Each position’s value is restricted to the bounds of a u32
, limiting the range of each position.
Fields§
§target_index: u32
§sorted_positions: Vec<u32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternLocation
impl RefUnwindSafe for PatternLocation
impl Send for PatternLocation
impl Sync for PatternLocation
impl Unpin for PatternLocation
impl UnwindSafe for PatternLocation
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