pub struct PreparedPattern { /* private fields */ }Expand description
Reusable scanner metadata and atoms for repeated scans.
Implementations§
Source§impl PreparedPattern
impl PreparedPattern
Sourcepub fn from_atoms(atoms: Vec<Atom>) -> Self
pub fn from_atoms(atoms: Vec<Atom>) -> Self
Builds a prepared pattern from parsed atoms.
Sourcepub fn required_slots(&self) -> usize
pub fn required_slots(&self) -> usize
Returns the minimum save-slot buffer length required for scanning.
Trait Implementations§
Source§impl Clone for PreparedPattern
impl Clone for PreparedPattern
Source§fn clone(&self) -> PreparedPattern
fn clone(&self) -> PreparedPattern
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 moreAuto Trait Implementations§
impl Freeze for PreparedPattern
impl RefUnwindSafe for PreparedPattern
impl Send for PreparedPattern
impl Sync for PreparedPattern
impl Unpin for PreparedPattern
impl UnsafeUnpin for PreparedPattern
impl UnwindSafe for PreparedPattern
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